cpython/Lib/encodings
Guido van Rossum c1f779cb01 Merged revisions 56125-56153 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/p3yk

........
  r56127 | georg.brandl | 2007-06-30 09:32:49 +0200 (Sat, 30 Jun 2007) | 2 lines

  Fix a place where floor division would be in order.
........
  r56135 | guido.van.rossum | 2007-07-01 06:13:54 +0200 (Sun, 01 Jul 2007) | 28 lines

  Make map() and filter() identical to itertools.imap() and .ifilter(),
  respectively.

  I fixed two bootstrap issues, due to the dynamic import of itertools:

  1. Starting python requires that map() and filter() are not used until
     site.py has added build/lib.<arch> to sys.path.
  2. Building python requires that setup.py and distutils and everything
     they use is free of map() and filter() calls.

  Beyond this, I only fixed the tests in test_builtin.py.
  Others, please help fixing the remaining tests that are now broken!
  The fixes are usually simple:
  a. map(None, X) -> list(X)
  b. map(F, X) -> list(map(F, X))
  c. map(lambda x: F(x), X) -> [F(x) for x in X]
  d. filter(F, X) -> list(filter(F, X))
  e. filter(lambda x: P(x), X) -> [x for x in X if P(x)]

  Someone, please also contribute a fixer for 2to3 to do this.
  It can leave map()/filter() calls alone that are already
  inside a list() or sorted() call or for-loop.

  Only in rare cases have I seen code that depends on map() of lists
  of different lengths going to the end of the longest, or on filter()
  of a string or tuple returning an object of the same type; these
  will need more thought to fix.
........
  r56136 | guido.van.rossum | 2007-07-01 06:22:01 +0200 (Sun, 01 Jul 2007) | 3 lines

  Make it so that test_decimal fails instead of hangs, to help automated
  test runners.
........
  r56139 | georg.brandl | 2007-07-01 18:20:58 +0200 (Sun, 01 Jul 2007) | 2 lines

  Fix a few test cases after the map->imap change.
........
  r56142 | neal.norwitz | 2007-07-02 06:38:12 +0200 (Mon, 02 Jul 2007) | 1 line

  Get a bunch more tests passing after converting map/filter to return iterators.
........
  r56147 | guido.van.rossum | 2007-07-02 15:32:02 +0200 (Mon, 02 Jul 2007) | 4 lines

  Fix the remaining failing unit tests (at least on OSX).
  Also tweaked urllib2 so it doesn't raise socket.gaierror when
  all network interfaces are turned off.
........
2007-07-03 08:25:58 +00:00
..
__init__.py Change normalize_encodings() to avoid using .translate() or depending on 2007-06-07 21:43:46 +00:00
aliases.py Merged revisions 53538-53622 via svnmerge from 2007-02-05 01:24:16 +00:00
ascii.py Merge part of the trunk changes into the p3yk branch. This merges from 43030 2006-04-21 09:43:23 +00:00
big5.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
big5hkscs.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
bz2_codec.py Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
charmap.py Merge part of the trunk changes into the p3yk branch. This merges from 43030 2006-04-21 09:43:23 +00:00
cp037.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp424.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp437.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp500.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp737.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp775.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp850.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp852.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp855.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp856.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp857.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp860.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp861.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp862.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp863.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp864.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp865.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp866.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp869.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp874.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp875.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp932.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
cp949.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
cp950.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
cp1006.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp1026.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp1140.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp1250.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp1251.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp1252.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp1253.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp1254.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp1255.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp1256.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp1257.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
cp1258.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
euc_jis_2004.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
euc_jisx0213.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
euc_jp.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
euc_kr.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
gb2312.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
gb18030.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
gbk.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
hp_roman8.py Merge part of the trunk changes into the p3yk branch. This merges from 43030 2006-04-21 09:43:23 +00:00
hz.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
idna.py Merged revisions 56125-56153 via svnmerge from 2007-07-03 08:25:58 +00:00
iso2022_jp_1.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
iso2022_jp_2.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
iso2022_jp_3.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
iso2022_jp_2004.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
iso2022_jp_ext.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
iso2022_jp.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
iso2022_kr.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
iso8859_1.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
iso8859_2.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
iso8859_3.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
iso8859_4.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
iso8859_5.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
iso8859_6.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
iso8859_7.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
iso8859_8.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
iso8859_9.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
iso8859_10.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
iso8859_11.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
iso8859_13.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
iso8859_14.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
iso8859_15.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
iso8859_16.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
johab.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
koi8_r.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
koi8_u.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
latin_1.py Merge part of the trunk changes into the p3yk branch. This merges from 43030 2006-04-21 09:43:23 +00:00
mac_arabic.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
mac_centeuro.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
mac_croatian.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
mac_cyrillic.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
mac_farsi.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
mac_greek.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
mac_iceland.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
mac_latin2.py Merge part of the trunk changes into the p3yk branch. This merges from 43030 2006-04-21 09:43:23 +00:00
mac_roman.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
mac_romanian.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
mac_turkish.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
mbcs.py Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
palmos.py Merge part of the trunk changes into the p3yk branch. This merges from 43030 2006-04-21 09:43:23 +00:00
ptcp154.py Merge part of the trunk changes into the p3yk branch. This merges from 43030 2006-04-21 09:43:23 +00:00
punycode.py Enhance the punycode decoder so that it can decode 2007-05-11 10:32:57 +00:00
raw_unicode_escape.py Merge part of the trunk changes into the p3yk branch. This merges from 43030 2006-04-21 09:43:23 +00:00
shift_jis_2004.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
shift_jis.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
shift_jisx0213.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
tis_620.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
undefined.py Merge part of the trunk changes into the p3yk branch. This merges from 43030 2006-04-21 09:43:23 +00:00
unicode_escape.py Merge part of the trunk changes into the p3yk branch. This merges from 43030 2006-04-21 09:43:23 +00:00
unicode_internal.py Merge part of the trunk changes into the p3yk branch. This merges from 43030 2006-04-21 09:43:23 +00:00
utf_7.py Merge part of the trunk changes into the p3yk branch. This merges from 43030 2006-04-21 09:43:23 +00:00
utf_8_sig.py Rip out all the u"..." literals and calls to unicode(). 2007-05-02 19:09:54 +00:00
utf_8.py Merge part of the trunk changes into the p3yk branch. This merges from 43030 2006-04-21 09:43:23 +00:00
utf_16_be.py Merge part of the trunk changes into the p3yk branch. This merges from 43030 2006-04-21 09:43:23 +00:00
utf_16_le.py Merge part of the trunk changes into the p3yk branch. This merges from 43030 2006-04-21 09:43:23 +00:00
utf_16.py Apply SF patch #1698994: Add getstate() and setstate() 2007-04-16 22:10:50 +00:00