]> granicus.if.org Git - python/log
python
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.

14 years agoIssue #1285086: Speed up urllib.parse functions: quote, quote_from_bytes, unquote...
Florent Xicluna [Mon, 17 May 2010 17:33:07 +0000 (17:33 +0000)]
Issue #1285086: Speed up urllib.parse functions: quote, quote_from_bytes, unquote, unquote_to_bytes.

Recorded merge of revisions 81265 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81265 | florent.xicluna | 2010-05-17 15:35:09 +0200 (lun, 17 mai 2010) | 2 lines

  Issue #1285086: Speed up urllib.quote and urllib.unquote for simple cases.
........

14 years agoMerged revision 81259 via svnmerge from
Florent Xicluna [Mon, 17 May 2010 17:24:07 +0000 (17:24 +0000)]
Merged revision 81259 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81259 | florent.xicluna | 2010-05-17 12:39:07 +0200 (lun, 17 mai 2010) | 2 lines

  Slight style cleanup.
........

14 years agoFix test_capi in !pydebug mode, where my original attempt segfaulted without
Jeffrey Yasskin [Mon, 17 May 2010 16:59:23 +0000 (16:59 +0000)]
Fix test_capi in !pydebug mode, where my original attempt segfaulted without
producing the expected error message.  The test only tests what it's supposed
to test in pydebug mode though.  Fixes issue 8726.

14 years agoImprove test_exit() error message to analyze sparc failures
Victor Stinner [Mon, 17 May 2010 14:36:43 +0000 (14:36 +0000)]
Improve test_exit() error message to analyze sparc failures

14 years agoTypo (thanks Arfrever)
Antoine Pitrou [Mon, 17 May 2010 14:13:10 +0000 (14:13 +0000)]
Typo (thanks Arfrever)

14 years agoMerged revisions 81261 via svnmerge from
Tarek Ziadé [Mon, 17 May 2010 11:01:57 +0000 (11:01 +0000)]
Merged revisions 81261 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81261 | tarek.ziade | 2010-05-17 12:54:43 +0200 (Mon, 17 May 2010) | 1 line

  upgraded distutils docs w.r.t. the manifest regeneration
........

14 years agoMerged revisions 81255 via svnmerge from
Tarek Ziadé [Mon, 17 May 2010 10:38:53 +0000 (10:38 +0000)]
Merged revisions 81255 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81255 | tarek.ziade | 2010-05-17 12:06:20 +0200 (Mon, 17 May 2010) | 1 line

  Fixed #8688: Distutils now recalculates MANIFEST everytime.
........

14 years agoTry to fix buildbot failures with old OpenSSLs.
Antoine Pitrou [Mon, 17 May 2010 10:30:00 +0000 (10:30 +0000)]
Try to fix buildbot failures with old OpenSSLs.

14 years agoFix refleak in internal_print() introduced by myself in r81251
Victor Stinner [Mon, 17 May 2010 09:33:42 +0000 (09:33 +0000)]
Fix refleak in internal_print() introduced by myself in r81251

_PyUnicode_AsDefaultEncodedString() uses a magical PyUnicode attribute to
automatically destroy PyUnicode_EncodeUTF8() result when the unicode string is
destroyed.

14 years agohandle_system_exit() flushs files to warranty the output order
Victor Stinner [Mon, 17 May 2010 08:58:51 +0000 (08:58 +0000)]
handle_system_exit() flushs files to warranty the output order

PyObject_Print() writes into the C object stderr, whereas PySys_WriteStderr()
writes into the Python object sys.stderr. Each object has its own buffer, so
call sys.stderr.flush() and fflush(stderr).

14 years agoPyObject_Dump() encodes unicode objects to utf8 with backslashreplace (instead
Victor Stinner [Mon, 17 May 2010 01:26:01 +0000 (01:26 +0000)]
PyObject_Dump() encodes unicode objects to utf8 with backslashreplace (instead
of strict) error handler to escape surrogates

14 years agoIssue #6697: Fix a crash if code of "python -c code" contains surrogates
Victor Stinner [Mon, 17 May 2010 01:13:37 +0000 (01:13 +0000)]
Issue #6697: Fix a crash if code of "python -c code" contains surrogates

14 years agoOops, my patch on subprocess is not merged yet: fix my previous commit on test_os
Victor Stinner [Mon, 17 May 2010 00:18:34 +0000 (00:18 +0000)]
Oops, my patch on subprocess is not merged yet: fix my previous commit on test_os

14 years agotest_os: cleanup test_internal_execvpe() and os._execvpe() mockup
Victor Stinner [Mon, 17 May 2010 00:14:53 +0000 (00:14 +0000)]
test_os: cleanup test_internal_execvpe() and os._execvpe() mockup

 * Replace os.defpath instead of os.get_exec_path() to test also
   os.get_exec_path()
 * Use contextlib.contextmanager, move the mockup outside the class, and
   the mockup returns directly the call list object
 * Use two different contexts for the two tests
 * Use more revelant values and names

14 years ago"xyzzy" is not a silly enough name for some OpenSSL versions to report an error
Antoine Pitrou [Sun, 16 May 2010 23:46:26 +0000 (23:46 +0000)]
"xyzzy" is not a silly enough name for some OpenSSL versions to report an error

14 years agoMerged revisions 81241 via svnmerge from
Antoine Pitrou [Sun, 16 May 2010 23:14:22 +0000 (23:14 +0000)]
Merged revisions 81241 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81241 | antoine.pitrou | 2010-05-17 01:11:46 +0200 (lun., 17 mai 2010) | 4 lines

  Clear the OpenSSL error queue each time an error is signalled.
  When the error queue is not emptied, strange things can happen on the next SSL call, depending on the OpenSSL version.
........

14 years agoIssue #8477: ssl.RAND_egd() supports str with surrogates and bytes for the path
Victor Stinner [Sun, 16 May 2010 21:36:37 +0000 (21:36 +0000)]
Issue #8477: ssl.RAND_egd() supports str with surrogates and bytes for the path

14 years agoIssue #8477: _ssl._test_decode_cert() supports str with surrogates and bytes
Victor Stinner [Sun, 16 May 2010 21:23:48 +0000 (21:23 +0000)]
Issue #8477: _ssl._test_decode_cert() supports str with surrogates and bytes
for the filename

14 years agoDo not fail if ssl fails to import
Antoine Pitrou [Sun, 16 May 2010 20:35:03 +0000 (20:35 +0000)]
Do not fail if ssl fails to import

14 years agoFix (hopefully) the remaining test_ssl buildbot failures
Antoine Pitrou [Sun, 16 May 2010 19:56:32 +0000 (19:56 +0000)]
Fix (hopefully) the remaining test_ssl buildbot failures