]> granicus.if.org Git - python/log
python
14 years agoBlocked revisions 81608 via svnmerge
Mark Dickinson [Sun, 30 May 2010 12:17:39 +0000 (12:17 +0000)]
Blocked revisions 81608 via svnmerge

........
  r81608 | mark.dickinson | 2010-05-30 13:17:11 +0100 (Sun, 30 May 2010) | 1 line

  Remove declaration for unused variable.
........

14 years agoBlocked revisions 81606 via svnmerge
Mark Dickinson [Sun, 30 May 2010 12:12:56 +0000 (12:12 +0000)]
Blocked revisions 81606 via svnmerge

........
  r81606 | mark.dickinson | 2010-05-30 13:12:25 +0100 (Sun, 30 May 2010) | 4 lines

  Issue #5211: Complete removal of implicit coercions for the complex
  type.  Coercion for arithmetic operations was already removed in
  r78280, but that commit didn't remove coercion for rich comparisons.
........

14 years agoMerged revisions 81602 via svnmerge from
Mark Dickinson [Sat, 29 May 2010 21:05:27 +0000 (21:05 +0000)]
Merged revisions 81602 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81602 | mark.dickinson | 2010-05-29 22:00:52 +0100 (Sat, 29 May 2010) | 1 line

  Untabify Modules/config.c.in.
........

14 years agoMerged revisions 81598 via svnmerge from
Stefan Krah [Sat, 29 May 2010 12:59:18 +0000 (12:59 +0000)]
Merged revisions 81598 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81598 | stefan.krah | 2010-05-29 14:54:35 +0200 (Sat, 29 May 2010) | 1 line

  Fix typo
........

14 years agoMerged revisions 81594 via svnmerge from
Antoine Pitrou [Sat, 29 May 2010 12:08:25 +0000 (12:08 +0000)]
Merged revisions 81594 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81594 | antoine.pitrou | 2010-05-29 14:06:13 +0200 (sam., 29 mai 2010) | 3 lines

  Issue #8840: Make documentation for truncate() clearer
........

14 years agoRemove dead code
Victor Stinner [Sat, 29 May 2010 00:13:06 +0000 (00:13 +0000)]
Remove dead code

14 years agoIssue #8837: Remove "O?" format of PyArg_Parse*() functions. The format is no
Victor Stinner [Fri, 28 May 2010 21:55:10 +0000 (21:55 +0000)]
Issue #8837: Remove "O?" format of PyArg_Parse*() functions. The format is no
used anymore and it was never documented.

14 years agoMerged revisions 81584 via svnmerge from
Brian Curtin [Fri, 28 May 2010 16:08:40 +0000 (16:08 +0000)]
Merged revisions 81584 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81584 | brian.curtin | 2010-05-28 10:49:21 -0500 (Fri, 28 May 2010) | 3 lines

  Fix #8405 for slow buildbots. Remove the sleep on startup and move the
  pipe communication into a loop to retry in case a buildbot gets even slower.
........

14 years agoMerged revisions 81582 via svnmerge from
Martin v. Löwis [Fri, 28 May 2010 15:44:20 +0000 (15:44 +0000)]
Merged revisions 81582 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81582 | martin.v.loewis | 2010-05-28 17:28:47 +0200 (Fr, 28 Mai 2010) | 2 lines

  Issue #1759169: Drop _XOPEN_SOURCE on Solaris.
........

14 years agoBlocked revisions 81578-81579 via svnmerge
Benjamin Peterson [Fri, 28 May 2010 03:23:57 +0000 (03:23 +0000)]
Blocked revisions 81578-81579 via svnmerge

........
  r81578 | benjamin.peterson | 2010-05-27 21:12:36 -0500 (Thu, 27 May 2010) | 1 line

  remove non-ascii coding per PEP 8
........
  r81579 | benjamin.peterson | 2010-05-27 22:10:31 -0500 (Thu, 27 May 2010) | 1 line

  2to3 doesn't fix test_support #6583
........

14 years agoMerged revisions 81318 via svnmerge from
Ezio Melotti [Thu, 27 May 2010 22:38:16 +0000 (22:38 +0000)]
Merged revisions 81318 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81318 | ezio.melotti | 2010-05-19 03:32:52 +0300 (Wed, 19 May 2010) | 1 line

  Fix typo in argparse doc.
........

14 years agocorrect default value in signature
Benjamin Peterson [Thu, 27 May 2010 22:32:22 +0000 (22:32 +0000)]
correct default value in signature

14 years agoMerged revisions 81566 via svnmerge from
Alexander Belopolsky [Thu, 27 May 2010 21:42:58 +0000 (21:42 +0000)]
Merged revisions 81566 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81566 | alexander.belopolsky | 2010-05-27 16:55:27 -0400 (Thu, 27 May 2010) | 3 lines

  Issue #7150: Raise OverflowError if the result of adding or subtracting
  timedelta from date or datetime falls outside of the MINYEAR:MAXYEAR range.
........

14 years agoStefan Krah was missing from Misc/ACKS in the py3k branch.
Mark Dickinson [Thu, 27 May 2010 19:47:53 +0000 (19:47 +0000)]
Stefan Krah was missing from Misc/ACKS in the py3k branch.

14 years agoMerged revisions 81512 via svnmerge from
Mark Dickinson [Thu, 27 May 2010 19:45:50 +0000 (19:45 +0000)]
Merged revisions 81512 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81512 | brett.cannon | 2010-05-25 03:53:04 +0100 (Tue, 25 May 2010) | 1 line

  Make the contributor list alphabetical again.
........

14 years agoMerged revisions 81559 via svnmerge from
Alexander Belopolsky [Wed, 26 May 2010 20:48:30 +0000 (20:48 +0000)]
Merged revisions 81559 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81559 | alexander.belopolsky | 2010-05-26 16:45:37 -0400 (Wed, 26 May 2010) | 3 lines

  Issue #7879: Skip negative timestamps test on any Windows platform
  using unittest.skipIf decorator.
........

14 years agoIssue #2844: Make int('42', n) consistently raise ValueError for
Mark Dickinson [Wed, 26 May 2010 20:07:58 +0000 (20:07 +0000)]
Issue #2844: Make int('42', n) consistently raise ValueError for
invalid integers n (including n = -909).

14 years agoMerged revisions 81555 via svnmerge from
Alexander Belopolsky [Wed, 26 May 2010 20:00:12 +0000 (20:00 +0000)]
Merged revisions 81555 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81555 | alexander.belopolsky | 2010-05-26 15:43:16 -0400 (Wed, 26 May 2010) | 3 lines

  Issue #7879: Do not test negative timestamps on any Windows platform
  including Windows CE.
........

14 years agoMerged revisions 81551 via svnmerge from
Mark Dickinson [Wed, 26 May 2010 19:14:01 +0000 (19:14 +0000)]
Merged revisions 81551 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81551 | mark.dickinson | 2010-05-26 20:06:33 +0100 (Wed, 26 May 2010) | 1 line

  Issue #8825: additional testcases for int(string, 0) and long(string, 0).
........

14 years agofix wrong assertIs context
Giampaolo Rodolà [Wed, 26 May 2010 18:21:26 +0000 (18:21 +0000)]
fix wrong assertIs context

14 years agoFix issue #8806: add SSL contexts support to ftplib
Giampaolo Rodolà [Wed, 26 May 2010 18:06:04 +0000 (18:06 +0000)]
Fix issue #8806: add SSL contexts support to ftplib

14 years agoFix #2810 - handle the case where some registry calls return
Brian Curtin [Wed, 26 May 2010 17:43:50 +0000 (17:43 +0000)]
Fix #2810 - handle the case where some registry calls return
ERROR_MORE_DATA, requiring another call to get the remaining data.

Patch by Daniel Stutzbach

14 years agoMerged revisions 81543 via svnmerge from
Victor Stinner [Wed, 26 May 2010 17:33:03 +0000 (17:33 +0000)]
Merged revisions 81543 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81543 | victor.stinner | 2010-05-26 19:25:28 +0200 (mer., 26 mai 2010) | 2 lines

  Issue #7449: Skip test_socketserver if threading support is disabled
........

14 years agoIssue #8817: Expose round-to-nearest variant of divmod in _PyLong_Divmod_Near
Mark Dickinson [Wed, 26 May 2010 16:02:59 +0000 (16:02 +0000)]
Issue #8817: Expose round-to-nearest variant of divmod in _PyLong_Divmod_Near
for use by the datetime module; also refactor long_round to use this function.

14 years agoBlocked revisions 81537 via svnmerge
Victor Stinner [Tue, 25 May 2010 22:35:40 +0000 (22:35 +0000)]
Blocked revisions 81537 via svnmerge

........
  r81537 | victor.stinner | 2010-05-26 00:30:32 +0200 (mer., 26 mai 2010) | 3 lines

  Issue #3798: Write sys.exit() message to sys.stderr to use stderr encoding and
  error handler, instead of writing to the C stderr file in utf-8
........

py3k was already fixed by r81252.

14 years agoFix the new TestMain.test_decode() of test_base64 for Windows
Victor Stinner [Tue, 25 May 2010 22:17:22 +0000 (22:17 +0000)]
Fix the new TestMain.test_decode() of test_base64 for Windows

14 years agoIssue #4769: Fix main() function of the base64 module, use sys.stdin.buffer and
Victor Stinner [Tue, 25 May 2010 21:12:34 +0000 (21:12 +0000)]
Issue #4769: Fix main() function of the base64 module, use sys.stdin.buffer and
sys.stdout.buffer (instead of sys.stdin and sys.stdout) to use the bytes API

14 years agoMerged revisions 81531 via svnmerge from
Martin v. Löwis [Tue, 25 May 2010 20:07:11 +0000 (20:07 +0000)]
Merged revisions 81531 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81531 | martin.v.loewis | 2010-05-25 22:06:02 +0200 (Di, 25 Mai 2010) | 2 lines

  Add Alexander Belopolsky.
........

14 years agoMerged revisions 81527 via svnmerge from
Mark Dickinson [Tue, 25 May 2010 19:46:20 +0000 (19:46 +0000)]
Merged revisions 81527 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81527 | mark.dickinson | 2010-05-25 20:44:49 +0100 (Tue, 25 May 2010) | 1 line

  Fix a NameError in test_enumerate.
........

14 years agoMerged revisions 81525 via svnmerge from
Mark Dickinson [Tue, 25 May 2010 19:06:24 +0000 (19:06 +0000)]
Merged revisions 81525 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81525 | mark.dickinson | 2010-05-25 20:01:08 +0100 (Tue, 25 May 2010) | 3 lines

  Issue #8816: Extra tests for some built-in functions.  These tests are
  ports of IronPython tests.  Thanks Gregory Nofi.
........

14 years agoRecorded merge of revisions 81521 via svnmerge from
R. David Murray [Tue, 25 May 2010 15:36:46 +0000 (15:36 +0000)]
Recorded merge of revisions 81521 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81521 | r.david.murray | 2010-05-25 11:32:06 -0400 (Tue, 25 May 2010) | 2 lines

  Issue 8818: urlparse/urlsplit keyword is 'scheme', not 'default_scheme'.
........

14 years agoBlocked revisions 81518 via svnmerge
R. David Murray [Tue, 25 May 2010 15:26:21 +0000 (15:26 +0000)]
Blocked revisions 81518 via svnmerge

........
  r81518 | r.david.murray | 2010-05-25 11:20:46 -0400 (Tue, 25 May 2010) | 8 lines

  Issue 8143: sync unquote in urlparse with urllib; add comment about doing so.

  unquote is duplicated in the two files to avoid a circular reference.
  (This is fixed in Python3.)  Updates keep getting made to the public unquote
  without fixing the urlparse one, however, so this fix syncs the two
  and adds a comment to both to make sure changes are applied to both.
........

14 years agoadded the list of public APIs in sysconfig
Tarek Ziadé [Tue, 25 May 2010 09:47:06 +0000 (09:47 +0000)]
added the list of public APIs in sysconfig

14 years agoMade sysconfig a script that displays useful information - #8770
Tarek Ziadé [Tue, 25 May 2010 09:44:36 +0000 (09:44 +0000)]
Made sysconfig a script that displays useful information - #8770

14 years agoBlocked revisions 81509 via svnmerge
Benjamin Peterson [Tue, 25 May 2010 02:27:55 +0000 (02:27 +0000)]
Blocked revisions 81509 via svnmerge

........
  r81509 | benjamin.peterson | 2010-05-24 21:23:32 -0500 (Mon, 24 May 2010) | 1 line

  correct default docs
........

14 years agoRecorded merge of revisions 81500-81501 via svnmerge from
Victor Stinner [Mon, 24 May 2010 21:46:25 +0000 (21:46 +0000)]
Recorded merge of revisions 81500-81501 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81500 | victor.stinner | 2010-05-24 23:33:24 +0200 (lun., 24 mai 2010) | 2 lines

  Issue #6662: Fix parsing of malformatted charref (&#bad;)
........
  r81501 | victor.stinner | 2010-05-24 23:37:28 +0200 (lun., 24 mai 2010) | 2 lines

  Add the author of the last fix (Issue #6662)
........

14 years agoDocument the context attribute of SSL sockets
Antoine Pitrou [Mon, 24 May 2010 21:20:20 +0000 (21:20 +0000)]
Document the context attribute of SSL sockets

14 years agoAdd a versionadded tag for SSL contexts.
Antoine Pitrou [Mon, 24 May 2010 15:58:43 +0000 (15:58 +0000)]
Add a versionadded tag for SSL contexts.

14 years agoMerged revisions 81492 via svnmerge from
Steven Bethard [Mon, 24 May 2010 03:47:38 +0000 (03:47 +0000)]
Merged revisions 81492 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81492 | steven.bethard | 2010-05-23 20:45:26 -0700 (Sun, 23 May 2010) | 1 line

  Fix default value for version help. Approved by Benjamin on python-dev: http://mail.python.org/pipermail/python-dev/2010-May/100231.html
........

14 years agoMerged revisions 81490 via svnmerge from
Steven Bethard [Mon, 24 May 2010 03:21:08 +0000 (03:21 +0000)]
Merged revisions 81490 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81490 | steven.bethard | 2010-05-23 19:38:00 -0700 (Sun, 23 May 2010) | 1 line

  argparse documentation updates (including updates to optparse and getopt documentation that were promised in the PEP)
........

14 years agoIssue #8188: Introduce a new scheme for computing hashes of numbers
Mark Dickinson [Sun, 23 May 2010 13:33:13 +0000 (13:33 +0000)]
Issue #8188: Introduce a new scheme for computing hashes of numbers
(instances of int, float, complex, decimal.Decimal and
fractions.Fraction) that makes it easy to maintain the invariant that
hash(x) == hash(y) whenever x and y have equal value.

14 years agoRemove duplicate NEWS entry.
Mark Dickinson [Sun, 23 May 2010 13:26:48 +0000 (13:26 +0000)]
Remove duplicate NEWS entry.

14 years agoMerged revisions 81479 via svnmerge from
Benjamin Peterson [Sat, 22 May 2010 18:59:24 +0000 (18:59 +0000)]
Merged revisions 81479 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

................
  r81479 | benjamin.peterson | 2010-05-22 13:52:21 -0500 (Sat, 22 May 2010) | 13 lines

  Merged revisions 80937,81478 via svnmerge from
  svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

  ........
    r80937 | benjamin.peterson | 2010-05-07 14:10:58 -0500 (Fri, 07 May 2010) | 1 line

    remove redundant unicode call
  ........
    r81478 | benjamin.peterson | 2010-05-22 13:47:39 -0500 (Sat, 22 May 2010) | 1 line

    ensure doctests have some future_features
  ........
................

14 years ago#Issue 8540: Make Context._clamp attribute public in decimal module.
Mark Dickinson [Sat, 22 May 2010 18:35:36 +0000 (18:35 +0000)]
#Issue 8540: Make Context._clamp attribute public in decimal module.

14 years agoMerged revisions 81471-81472 via svnmerge from
Victor Stinner [Sat, 22 May 2010 16:59:09 +0000 (16:59 +0000)]
Merged revisions 81471-81472 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81471 | victor.stinner | 2010-05-22 15:37:56 +0200 (sam., 22 mai 2010) | 7 lines

  Issue #6268: More bugfixes about BOM, UTF-16 and UTF-32

   * Fix seek() method of codecs.open(), don't write the BOM twice after seek(0)
   * Fix reset() method of codecs, UTF-16, UTF-32 and StreamWriter classes
   * test_codecs: use "w+" mode instead of "wt+". "t" mode is not supported by
     Solaris or Windows, but does it really exist? I found it the in the issue.
........
  r81472 | victor.stinner | 2010-05-22 15:44:25 +0200 (sam., 22 mai 2010) | 4 lines

  Fix my last commit (r81471) about codecs

  Rememder: don't touch the code just before a commit
........

14 years agoIssue #8749: remove unused code in Objects/object.c. Thanks Yaniv Aknin.
Mark Dickinson [Sat, 22 May 2010 12:02:35 +0000 (12:02 +0000)]
Issue #8749: remove unused code in Objects/object.c.  Thanks Yaniv Aknin.

14 years agoMerged revisions 81459 via svnmerge from
Victor Stinner [Sat, 22 May 2010 02:16:27 +0000 (02:16 +0000)]
Merged revisions 81459 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81459 | victor.stinner | 2010-05-22 04:11:07 +0200 (sam., 22 mai 2010) | 3 lines

  Issue #6268: Fix seek() method of codecs.open(), don't read the BOM twice
  after seek(0)
........

14 years agoIssue #3798: sys.exit(message) writes the message to sys.stderr file, instead
Victor Stinner [Fri, 21 May 2010 23:45:42 +0000 (23:45 +0000)]
Issue #3798: sys.exit(message) writes the message to sys.stderr file, instead
of the C file stderr, to use stderr encoding and error handler

14 years agoBlocked revisions 81454 via svnmerge
Victor Stinner [Fri, 21 May 2010 22:52:10 +0000 (22:52 +0000)]
Blocked revisions 81454 via svnmerge

........
  r81454 | victor.stinner | 2010-05-22 00:50:28 +0200 (sam., 22 mai 2010) | 3 lines

  Issue #5640: Fix Shift-JIS incremental encoder for error handlers different
  than strict
........

14 years agoMerged revisions 81450 via svnmerge from
Georg Brandl [Fri, 21 May 2010 22:04:32 +0000 (22:04 +0000)]
Merged revisions 81450 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81450 | georg.brandl | 2010-05-22 00:03:29 +0200 (Sa, 22 Mai 2010) | 1 line

  #8709: mention Windows support for os.devnull.
........

14 years agoMerged revisions 81443 via svnmerge from
Georg Brandl [Fri, 21 May 2010 21:49:47 +0000 (21:49 +0000)]
Merged revisions 81443 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81443 | georg.brandl | 2010-05-21 23:48:57 +0200 (Fr, 21 Mai 2010) | 1 line

  typo
........

14 years agoMerged revisions 81440 via svnmerge from
Georg Brandl [Fri, 21 May 2010 21:48:27 +0000 (21:48 +0000)]
Merged revisions 81440 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81440 | georg.brandl | 2010-05-21 23:47:05 +0200 (Fr, 21 Mai 2010) | 1 line

  Correct info for Semaphore.acquire() semantics under OSX.
........

14 years agoMerged revisions 81428-81429,81432-81433,81437 via svnmerge from
Benjamin Peterson [Fri, 21 May 2010 21:45:06 +0000 (21:45 +0000)]
Merged revisions 81428-81429,81432-81433,81437 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81428 | benjamin.peterson | 2010-05-21 16:16:12 -0500 (Fri, 21 May 2010) | 1 line

  use addCleanup
........
  r81429 | benjamin.peterson | 2010-05-21 16:17:22 -0500 (Fri, 21 May 2010) | 1 line

  fix name
........
  r81432 | benjamin.peterson | 2010-05-21 16:31:24 -0500 (Fri, 21 May 2010) | 1 line

  ensure the last line has a trailing newline #8782
........
  r81433 | benjamin.peterson | 2010-05-21 16:32:49 -0500 (Fri, 21 May 2010) | 1 line

  remove debugging rubish
........
  r81437 | benjamin.peterson | 2010-05-21 16:35:44 -0500 (Fri, 21 May 2010) | 1 line

  simplify and modernize updatecache()
........

14 years agoMerged revisions 81431 via svnmerge from
Georg Brandl [Fri, 21 May 2010 21:33:23 +0000 (21:33 +0000)]
Merged revisions 81431 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81431 | georg.brandl | 2010-05-21 23:30:47 +0200 (Fr, 21 Mai 2010) | 1 line

  #8707: remove duplicate paragraph part.
........

14 years agoFix signatures for the various TemporaryFile class^Wfunctions.
Georg Brandl [Fri, 21 May 2010 21:12:07 +0000 (21:12 +0000)]
Fix signatures for the various TemporaryFile class^Wfunctions.

14 years agoBlocked revisions 81419 via svnmerge
Georg Brandl [Fri, 21 May 2010 21:03:02 +0000 (21:03 +0000)]
Blocked revisions 81419 via svnmerge

........
  r81419 | georg.brandl | 2010-05-21 22:58:12 +0200 (Fr, 21 Mai 2010) | 1 line

  Add missing parameter in SimpleXMLRPCServer signature.
........

14 years agoFix variable name in example.
Georg Brandl [Fri, 21 May 2010 21:01:32 +0000 (21:01 +0000)]
Fix variable name in example.

14 years agoRecorded merge of revisions 81415 via svnmerge from
Georg Brandl [Fri, 21 May 2010 20:57:33 +0000 (20:57 +0000)]
Recorded merge of revisions 81415 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81415 | georg.brandl | 2010-05-21 22:52:46 +0200 (Fr, 21 Mai 2010) | 1 line

  typo
........

14 years agoMerged revisions 81414 via svnmerge from
Benjamin Peterson [Fri, 21 May 2010 20:55:22 +0000 (20:55 +0000)]
Merged revisions 81414 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81414 | benjamin.peterson | 2010-05-21 15:51:45 -0500 (Fri, 21 May 2010) | 1 line

  return NotImplemented from Mapping when comparing to a non-mapping #8729
........

14 years agoRemove redundant example.
Georg Brandl [Fri, 21 May 2010 20:45:12 +0000 (20:45 +0000)]
Remove redundant example.

14 years agoMerged revisions 81404 via svnmerge from
Georg Brandl [Fri, 21 May 2010 20:28:13 +0000 (20:28 +0000)]
Merged revisions 81404 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81404 | georg.brandl | 2010-05-21 22:24:45 +0200 (Fr, 21 Mai 2010) | 1 line

  #8783: replace link to now dead hash collision FAQ.
........

14 years agoIssue #8780: Fix a regression introduced by r78946 in subprocess on Windows
Victor Stinner [Fri, 21 May 2010 20:13:12 +0000 (20:13 +0000)]
Issue #8780: Fix a regression introduced by r78946 in subprocess on Windows

Ensure that stdout / stderr is inherited from the parent if stdout=PIPE /
stderr=PIPE is not used.

14 years agoMerged revisions 81398 via svnmerge from
Antoine Pitrou [Fri, 21 May 2010 17:25:34 +0000 (17:25 +0000)]
Merged revisions 81398 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81398 | antoine.pitrou | 2010-05-21 19:12:38 +0200 (ven., 21 mai 2010) | 6 lines

  Issue #5753: A new C API function, :cfunc:`PySys_SetArgvEx`, allows
  embedders of the interpreter to set sys.argv without also modifying
  sys.path.  This helps fix `CVE-2008-5983
  <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5983>`_.
........

14 years agoIssue #8748: Fix two issues with comparisons between complex and integer
Mark Dickinson [Fri, 21 May 2010 14:55:26 +0000 (14:55 +0000)]
Issue #8748: Fix two issues with comparisons between complex and integer
objects.  (1) The comparison could incorrectly return True in some cases
(2**53+1 == complex(2**53) == 2**53), breaking transivity of equality.
(2) The comparison raised an OverflowError for large integers, leading
to unpredictable exceptions when combining integers and complex objects
in sets or dicts.

Patch by Meador Inge.

14 years agoIssue #8774: tabnanny uses the encoding cookie (#coding:...) to use the correct
Victor Stinner [Fri, 21 May 2010 10:52:08 +0000 (10:52 +0000)]
Issue #8774: tabnanny uses the encoding cookie (#coding:...) to use the correct
encoding

14 years agoIssue #4870: Add an `options` attribute to SSL contexts, as well as
Antoine Pitrou [Fri, 21 May 2010 09:56:06 +0000 (09:56 +0000)]
Issue #4870: Add an `options` attribute to SSL contexts, as well as
several ``OP_*`` constants to the `ssl` module.  This allows to selectively
disable protocol versions, when used in combination with `PROTOCOL_SSLv23`.

14 years agoMerged revisions 81385 via svnmerge from
Benjamin Peterson [Thu, 20 May 2010 22:29:43 +0000 (22:29 +0000)]
Merged revisions 81385 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81385 | benjamin.peterson | 2010-05-20 17:23:37 -0500 (Thu, 20 May 2010) | 1 line

  fix extra 't' #8778
........

14 years agoBlocked revisions 81377 via svnmerge
Victor Stinner [Thu, 20 May 2010 11:30:37 +0000 (11:30 +0000)]
Blocked revisions 81377 via svnmerge

........
  r81377 | victor.stinner | 2010-05-20 13:29:45 +0200 (jeu., 20 mai 2010) | 8 lines

  libpython.py: fix support of non-BMP unicode characters

  Forward port some code from Python3:

   * join surrogate pairs if sizeof(Py_UNICODE)==2
   * Enable non-BMP test on narrow builds using u"\U0001D121" instead of
     unichr(0x1D121)
........

14 years agoIssue #8559: improve unicode support of (gdb) libpython.py
Victor Stinner [Wed, 19 May 2010 23:04:56 +0000 (23:04 +0000)]
Issue #8559: improve unicode support of (gdb) libpython.py

 * Escape non printable characters (use locale.getpreferredencoding())
 * Fix support of surrogate pairs
 * test_gdb.py: use ascii() instead of repr() in gdb program arguments to avoid
   encoding issues
 * Fix test_strings() of test_gdb.py for encoding different than UTF-8
   (eg. ACSII)

14 years agoMerged revisions 81371 via svnmerge from
Tarek Ziadé [Wed, 19 May 2010 22:25:00 +0000 (22:25 +0000)]
Merged revisions 81371 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81371 | tarek.ziade | 2010-05-20 00:20:14 +0200 (Thu, 20 May 2010) | 1 line

  #8759: Fixed user paths in sysconfig for posix and os2 schemes
........

14 years agoAdd descriptor HOWTO to py3k docs.
Georg Brandl [Wed, 19 May 2010 21:39:51 +0000 (21:39 +0000)]
Add descriptor HOWTO to py3k docs.

14 years agoMerged revisions 80068 via svnmerge from
Georg Brandl [Wed, 19 May 2010 21:06:36 +0000 (21:06 +0000)]
Merged revisions 80068 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80068 | georg.brandl | 2010-04-14 10:56:01 +0200 (Mi, 14 Apr 2010) | 1 line

  #5341: fix typo and adapt docstring syntax.
........

14 years agoRecorded merge of revisions 80466-80469 via svnmerge from
Georg Brandl [Wed, 19 May 2010 21:03:51 +0000 (21:03 +0000)]
Recorded merge of revisions 80466-80469 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80466 | georg.brandl | 2010-04-25 12:54:42 +0200 (So, 25 Apr 2010) | 1 line

  Patch from Tim Hatch: Better cross-referencing in socket and winreg docs.
........
  r80467 | georg.brandl | 2010-04-25 12:55:16 +0200 (So, 25 Apr 2010) | 1 line

  Patch from Tim Hatch: Remove reference to winreg being the fabled high-level registry interface.
........
  r80468 | georg.brandl | 2010-04-25 12:55:58 +0200 (So, 25 Apr 2010) | 1 line

  Patch from Tim Hatch: Minor spelling changes to _winreg docs.
........
  r80469 | georg.brandl | 2010-04-25 12:56:41 +0200 (So, 25 Apr 2010) | 1 line

  Fix code example to have valid syntax so that it can be highlighted.
........

14 years agoRecorded merge of revisions 80030,80067,80069,80080-80081,80084,80432-80433,80465...
Georg Brandl [Wed, 19 May 2010 20:58:02 +0000 (20:58 +0000)]
Recorded merge of revisions 80030,80067,80069,80080-80081,80084,80432-80433,80465,80470,81059,81065-81067 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80030 | georg.brandl | 2010-04-13 08:43:54 +0200 (Di, 13 Apr 2010) | 1 line

  Get rid of multi-row cells.
........
  r80067 | georg.brandl | 2010-04-14 10:53:38 +0200 (Mi, 14 Apr 2010) | 1 line

  #5341: typo.
........
  r80069 | georg.brandl | 2010-04-14 15:50:31 +0200 (Mi, 14 Apr 2010) | 1 line

  Add an x-ref to where the O_ constants are documented and move the SEEK_ constants after lseek().
........
  r80080 | georg.brandl | 2010-04-14 21:16:38 +0200 (Mi, 14 Apr 2010) | 1 line

  #8399: add note about Windows and O_BINARY.
........
  r80081 | georg.brandl | 2010-04-14 23:34:44 +0200 (Mi, 14 Apr 2010) | 1 line

  #5250: document __instancecheck__ and __subclasscheck__.  I hope the part about the class/metaclass distinction is understandable.
........
  r80084 | georg.brandl | 2010-04-14 23:46:45 +0200 (Mi, 14 Apr 2010) | 1 line

  Fix missing.
........
  r80432 | georg.brandl | 2010-04-24 10:56:58 +0200 (Sa, 24 Apr 2010) | 1 line

  Markup fixes.
........
  r80433 | georg.brandl | 2010-04-24 11:08:10 +0200 (Sa, 24 Apr 2010) | 1 line

  #7507: quote "!" in pipes.quote(); it is a special character for some shells.
........
  r80465 | georg.brandl | 2010-04-25 12:29:17 +0200 (So, 25 Apr 2010) | 1 line

  Remove LaTeXy index entry syntax.
........
  r80470 | georg.brandl | 2010-04-25 12:57:15 +0200 (So, 25 Apr 2010) | 1 line

  Patch from Tim Hatch: Make socket setblocking <-> settimeout examples symmetric.
........
  r81059 | georg.brandl | 2010-05-10 23:02:51 +0200 (Mo, 10 Mai 2010) | 1 line

  #8642: fix wrong function name.
........
  r81065 | georg.brandl | 2010-05-10 23:46:50 +0200 (Mo, 10 Mai 2010) | 1 line

  Fix reference direction.
........
  r81066 | georg.brandl | 2010-05-10 23:50:57 +0200 (Mo, 10 Mai 2010) | 1 line

  Consolidate deprecation messages.
........
  r81067 | georg.brandl | 2010-05-10 23:51:33 +0200 (Mo, 10 Mai 2010) | 1 line

  Fix typo.
........

14 years agoMerged revisions 80030,80067,80069,80080-80081,80084,80432-80433,80465-80470,81059...
Georg Brandl [Wed, 19 May 2010 20:57:08 +0000 (20:57 +0000)]
Merged revisions 80030,80067,80069,80080-80081,80084,80432-80433,80465-80470,81059,81065-81067 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80030 | georg.brandl | 2010-04-13 08:43:54 +0200 (Di, 13 Apr 2010) | 1 line

  Get rid of multi-row cells.
........
  r80067 | georg.brandl | 2010-04-14 10:53:38 +0200 (Mi, 14 Apr 2010) | 1 line

  #5341: typo.
........
  r80069 | georg.brandl | 2010-04-14 15:50:31 +0200 (Mi, 14 Apr 2010) | 1 line

  Add an x-ref to where the O_ constants are documented and move the SEEK_ constants after lseek().
........
  r80080 | georg.brandl | 2010-04-14 21:16:38 +0200 (Mi, 14 Apr 2010) | 1 line

  #8399: add note about Windows and O_BINARY.
........
  r80081 | georg.brandl | 2010-04-14 23:34:44 +0200 (Mi, 14 Apr 2010) | 1 line

  #5250: document __instancecheck__ and __subclasscheck__.  I hope the part about the class/metaclass distinction is understandable.
........
  r80084 | georg.brandl | 2010-04-14 23:46:45 +0200 (Mi, 14 Apr 2010) | 1 line

  Fix missing.
........
  r80432 | georg.brandl | 2010-04-24 10:56:58 +0200 (Sa, 24 Apr 2010) | 1 line

  Markup fixes.
........
  r80433 | georg.brandl | 2010-04-24 11:08:10 +0200 (Sa, 24 Apr 2010) | 1 line

  #7507: quote "!" in pipes.quote(); it is a special character for some shells.
........
  r80465 | georg.brandl | 2010-04-25 12:29:17 +0200 (So, 25 Apr 2010) | 1 line

  Remove LaTeXy index entry syntax.
........
  r80466 | georg.brandl | 2010-04-25 12:54:42 +0200 (So, 25 Apr 2010) | 1 line

  Patch from Tim Hatch: Better cross-referencing in socket and winreg docs.
........
  r80467 | georg.brandl | 2010-04-25 12:55:16 +0200 (So, 25 Apr 2010) | 1 line

  Patch from Tim Hatch: Remove reference to winreg being the fabled high-level registry interface.
........
  r80468 | georg.brandl | 2010-04-25 12:55:58 +0200 (So, 25 Apr 2010) | 1 line

  Patch from Tim Hatch: Minor spelling changes to _winreg docs.
........
  r80469 | georg.brandl | 2010-04-25 12:56:41 +0200 (So, 25 Apr 2010) | 1 line

  Fix code example to have valid syntax so that it can be highlighted.
........
  r80470 | georg.brandl | 2010-04-25 12:57:15 +0200 (So, 25 Apr 2010) | 1 line

  Patch from Tim Hatch: Make socket setblocking <-> settimeout examples symmetric.
........
  r81059 | georg.brandl | 2010-05-10 23:02:51 +0200 (Mo, 10 Mai 2010) | 1 line

  #8642: fix wrong function name.
........
  r81065 | georg.brandl | 2010-05-10 23:46:50 +0200 (Mo, 10 Mai 2010) | 1 line

  Fix reference direction.
........
  r81066 | georg.brandl | 2010-05-10 23:50:57 +0200 (Mo, 10 Mai 2010) | 1 line

  Consolidate deprecation messages.
........
  r81067 | georg.brandl | 2010-05-10 23:51:33 +0200 (Mo, 10 Mai 2010) | 1 line

  Fix typo.
........

14 years agoIssue #8766: Initialize _warnings module before importing the first module.
Victor Stinner [Wed, 19 May 2010 20:40:50 +0000 (20:40 +0000)]
Issue #8766: Initialize _warnings module before importing the first module.
Fix a crash if an empty directory called "encodings" exists in sys.path.

14 years agoOops, add the new test_log.py for distutils test suite (missing part of r81359)
Victor Stinner [Wed, 19 May 2010 17:15:50 +0000 (17:15 +0000)]
Oops, add the new test_log.py for distutils test suite (missing part of r81359)

14 years agoregrtest.py: call replace_stdout() before the first call to print()
Victor Stinner [Wed, 19 May 2010 17:11:19 +0000 (17:11 +0000)]
regrtest.py: call replace_stdout() before the first call to print()

print("==  ", os.getcwd()) fails if the current working directory is not ASCII
whereas sys.stdout encoding is ASCII.

14 years agoIssue #8663: distutils.log emulates backslashreplace error handler. Fix
Victor Stinner [Wed, 19 May 2010 17:00:07 +0000 (17:00 +0000)]
Issue #8663: distutils.log emulates backslashreplace error handler. Fix
compilation in a non-ASCII directory if stdout encoding is ASCII (eg. if stdout
is not a TTY).

14 years agoIssue #8589: Decode PYTHONWARNINGS environment variable with the file system
Victor Stinner [Wed, 19 May 2010 16:53:30 +0000 (16:53 +0000)]
Issue #8589: Decode PYTHONWARNINGS environment variable with the file system
encoding and surrogateespace error handler instead of the locale encoding to be
consistent with os.environ. Add PySys_AddWarnOptionUnicode() function.

14 years agoMerged revisions 81354 via svnmerge from
Stefan Krah [Wed, 19 May 2010 16:09:41 +0000 (16:09 +0000)]
Merged revisions 81354 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81354 | stefan.krah | 2010-05-19 17:59:40 +0200 (Wed, 19 May 2010) | 3 lines

  Fix typo.
........

14 years agoMerged revisions 81350 via svnmerge from
Stefan Krah [Wed, 19 May 2010 15:52:31 +0000 (15:52 +0000)]
Merged revisions 81350 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81350 | stefan.krah | 2010-05-19 17:46:39 +0200 (Wed, 19 May 2010) | 1 line

  Fix typos in docstrings.
........

14 years agoOoops, add missing ";" in my previous commit (r81324, typeobject.c)
Victor Stinner [Wed, 19 May 2010 01:50:45 +0000 (01:50 +0000)]
Ooops, add missing ";" in my previous commit (r81324, typeobject.c)

It's time to go to bed...

14 years agoIssue #6697: Check that _PyUnicode_AsString() result is not NULL in typeobject
Victor Stinner [Wed, 19 May 2010 01:42:46 +0000 (01:42 +0000)]
Issue #6697: Check that _PyUnicode_AsString() result is not NULL in typeobject

Type name and slots are already checked for surrogates somewhere else, but it's
better to ensure that the result is not NULL.

14 years agoIssue #6697: Check that _PyUnicode_AsString() result is not NULL in _sqlite
Victor Stinner [Wed, 19 May 2010 01:27:23 +0000 (01:27 +0000)]
Issue #6697: Check that _PyUnicode_AsString() result is not NULL in _sqlite

Strip also some trailing spaces

14 years agoIssue #6697: Check that _PyUnicode_AsString() result is not NULL in textio.c
Victor Stinner [Wed, 19 May 2010 01:17:01 +0000 (01:17 +0000)]
Issue #6697: Check that _PyUnicode_AsString() result is not NULL in textio.c

The bug may occurs if locale.getpreferredencoding() returns an encoding with a
surrogate (very unlikely!).

14 years agoIssue #6697: Fix a crash if sys.stdin or sys.stdout encoding contain a surrogate
Victor Stinner [Wed, 19 May 2010 01:06:22 +0000 (01:06 +0000)]
Issue #6697: Fix a crash if sys.stdin or sys.stdout encoding contain a surrogate

This is *very* unlikely :-)

14 years agoIssue #6697: Fix a crash if a keyword contains a surrogate
Victor Stinner [Wed, 19 May 2010 00:54:06 +0000 (00:54 +0000)]
Issue #6697: Fix a crash if a keyword contains a surrogate

14 years agoIssue #6697: Check that _PyUnicode_AsString() result is not NULL
Victor Stinner [Wed, 19 May 2010 00:34:15 +0000 (00:34 +0000)]
Issue #6697: Check that _PyUnicode_AsString() result is not NULL

14 years agoIssue #6697: Fix a crash if a module attribute name contains a surrogate
Victor Stinner [Wed, 19 May 2010 00:03:09 +0000 (00:03 +0000)]
Issue #6697: Fix a crash if a module attribute name contains a surrogate

14 years agoMerged revisions 81294 via svnmerge from
Giampaolo Rodolà [Tue, 18 May 2010 20:11:58 +0000 (20:11 +0000)]
Merged revisions 81294 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81294 | giampaolo.rodola | 2010-05-18 22:04:31 +0200 (mar, 18 mag 2010) | 1 line

  Fix issue #8573 (asyncore._strerror bug): fixed os.strerror typo; included NameError in the tuple of expected exception; added test case for asyncore._strerror.
........

14 years agoAdd versionadded (3.2) tag to os.supports_bytes_environ documentation
Victor Stinner [Tue, 18 May 2010 17:24:09 +0000 (17:24 +0000)]
Add versionadded (3.2) tag to os.supports_bytes_environ documentation

14 years agoIssue #8513: os.get_exec_path() supports b'PATH' key and bytes value.
Victor Stinner [Tue, 18 May 2010 17:17:23 +0000 (17:17 +0000)]
Issue #8513: os.get_exec_path() supports b'PATH' key and bytes value.
subprocess.Popen() and os._execvpe() support bytes program name. Add
os.supports_bytes_environ flag: True if the native OS type of the environment
is bytes (eg. False on Windows).

14 years agoRepair test failure. Bug 8727.
Barry Warsaw [Tue, 18 May 2010 14:15:20 +0000 (14:15 +0000)]
Repair test failure.  Bug 8727.

14 years agoMerged revisions 81286 via svnmerge from
Senthil Kumaran [Tue, 18 May 2010 13:48:45 +0000 (13:48 +0000)]
Merged revisions 81286 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81286 | senthil.kumaran | 2010-05-18 19:10:23 +0530 (Tue, 18 May 2010) | 3 lines

  Doc Fix. Correct link to Zephyr ASDL Abstract page.
........

14 years agoRemoving the reference in the docs for overriding _urlopener global value. See Issue8...
Senthil Kumaran [Tue, 18 May 2010 03:58:36 +0000 (03:58 +0000)]
Removing the reference in the docs for overriding _urlopener global value. See Issue8619 for details.

14 years agoMerged revisions 81279 via svnmerge from
Senthil Kumaran [Tue, 18 May 2010 03:26:11 +0000 (03:26 +0000)]
Merged revisions 81279 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81279 | senthil.kumaran | 2010-05-18 08:50:43 +0530 (Tue, 18 May 2010) | 3 lines

  Fix minor typo.
........

14 years agoFix test_main_invalid_unicode() of test_sys for ASCII locale encoding
Victor Stinner [Mon, 17 May 2010 19:57:40 +0000 (19:57 +0000)]
Fix test_main_invalid_unicode() of test_sys for ASCII locale encoding

It should fix sparc 3.x and 3.1 failures.

14 years agoIssue #8633: Support for POSIX.1-2008 binary pax headers.
Lars Gustäbel [Mon, 17 May 2010 18:02:50 +0000 (18:02 +0000)]
Issue #8633: Support for POSIX.1-2008 binary pax headers.

tarfile is now able to read and write pax headers with a
"hdrcharset=BINARY" record. This record was introduced in
POSIX.1-2008 as a method to store unencoded binary strings that
cannot be translated to UTF-8. In practice, this is just a workaround
that allows a tar implementation to store filenames that do not
comply with the current filesystem encoding and thus cannot be
decoded correctly.
Additionally, tarfile works around a bug in current versions of GNU
tar: undecodable filenames are stored as-is in a pax header without a
"hdrcharset" record being added. Technically, these headers are
invalid, but tarfile manages to read them correctly anyway.

14 years agoInadvertently removed part of the comment in r81271.
Florent Xicluna [Mon, 17 May 2010 18:01:22 +0000 (18:01 +0000)]
Inadvertently removed part of the comment in r81271.