]> granicus.if.org Git - python/log
python
14 years agoNEWS rewrap and punctuation consistency.
Georg Brandl [Sat, 22 May 2010 21:26:21 +0000 (21:26 +0000)]
NEWS rewrap and punctuation consistency.

14 years agoMerged revisions 80937,81478 via svnmerge from
Benjamin Peterson [Sat, 22 May 2010 18:52:21 +0000 (18:52 +0000)]
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 agoFix my last commit (r81471) about codecs
Victor Stinner [Sat, 22 May 2010 13:44:25 +0000 (13:44 +0000)]
Fix my last commit (r81471) about codecs

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

14 years agoIssue #6268: More bugfixes about BOM, UTF-16 and UTF-32
Victor Stinner [Sat, 22 May 2010 13:37:56 +0000 (13:37 +0000)]
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.

14 years ago#8635: document enumerate() start parameter in docstring.
Georg Brandl [Sat, 22 May 2010 11:43:25 +0000 (11:43 +0000)]
#8635: document enumerate() start parameter in docstring.

14 years agoUnderscore the name of an internal utility function.
Georg Brandl [Sat, 22 May 2010 11:31:16 +0000 (11:31 +0000)]
Underscore the name of an internal utility function.

14 years agoIssue #3924: Ignore cookies with invalid "version" field in cookielib.
Georg Brandl [Sat, 22 May 2010 11:29:19 +0000 (11:29 +0000)]
Issue #3924: Ignore cookies with invalid "version" field in cookielib.

14 years ago#8785: less confusing description of regex.find*.
Georg Brandl [Sat, 22 May 2010 08:17:23 +0000 (08:17 +0000)]
#8785: less confusing description of regex.find*.

14 years agoIssue #6268: Fix seek() method of codecs.open(), don't read the BOM twice
Victor Stinner [Sat, 22 May 2010 02:11:07 +0000 (02:11 +0000)]
Issue #6268: Fix seek() method of codecs.open(), don't read the BOM twice
after seek(0)

14 years agoIssue #5640: Fix Shift-JIS incremental encoder for error handlers different
Victor Stinner [Fri, 21 May 2010 22:50:28 +0000 (22:50 +0000)]
Issue #5640: Fix Shift-JIS incremental encoder for error handlers different
than strict

14 years ago#8709: mention Windows support for os.devnull.
Georg Brandl [Fri, 21 May 2010 22:03:29 +0000 (22:03 +0000)]
#8709: mention Windows support for os.devnull.

14 years agotypo
Georg Brandl [Fri, 21 May 2010 21:48:57 +0000 (21:48 +0000)]
typo

14 years agoCorrect info for Semaphore.acquire() semantics under OSX.
Georg Brandl [Fri, 21 May 2010 21:47:05 +0000 (21:47 +0000)]
Correct info for Semaphore.acquire() semantics under OSX.

14 years agosimplify and modernize updatecache()
Benjamin Peterson [Fri, 21 May 2010 21:35:44 +0000 (21:35 +0000)]
simplify and modernize updatecache()

14 years agoremove debugging rubish
Benjamin Peterson [Fri, 21 May 2010 21:32:49 +0000 (21:32 +0000)]
remove debugging rubish

14 years agoensure the last line has a trailing newline #8782
Benjamin Peterson [Fri, 21 May 2010 21:31:24 +0000 (21:31 +0000)]
ensure the last line has a trailing newline #8782

14 years ago#8707: remove duplicate paragraph part.
Georg Brandl [Fri, 21 May 2010 21:30:47 +0000 (21:30 +0000)]
#8707: remove duplicate paragraph part.

14 years agofix name
Benjamin Peterson [Fri, 21 May 2010 21:17:22 +0000 (21:17 +0000)]
fix name

14 years agouse addCleanup
Benjamin Peterson [Fri, 21 May 2010 21:16:12 +0000 (21:16 +0000)]
use addCleanup

14 years agoAdd missing parameter in SimpleXMLRPCServer signature.
Georg Brandl [Fri, 21 May 2010 20:58:12 +0000 (20:58 +0000)]
Add missing parameter in SimpleXMLRPCServer signature.

14 years agotypo
Georg Brandl [Fri, 21 May 2010 20:52:46 +0000 (20:52 +0000)]
typo

14 years agoreturn NotImplemented from Mapping when comparing to a non-mapping #8729
Benjamin Peterson [Fri, 21 May 2010 20:51:45 +0000 (20:51 +0000)]
return NotImplemented from Mapping when comparing to a non-mapping #8729

14 years ago#8783: replace link to now dead hash collision FAQ.
Georg Brandl [Fri, 21 May 2010 20:24:45 +0000 (20:24 +0000)]
#8783: replace link to now dead hash collision FAQ.

14 years agoUpdated logging documentation with more dictConfig information.
Vinay Sajip [Fri, 21 May 2010 17:41:34 +0000 (17:41 +0000)]
Updated logging documentation with more dictConfig information.

14 years agoIssue #5753: A new C API function, :cfunc:`PySys_SetArgvEx`, allows
Antoine Pitrou [Fri, 21 May 2010 17:12:38 +0000 (17:12 +0000)]
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 agofix extra 't' #8778
Benjamin Peterson [Thu, 20 May 2010 22:23:37 +0000 (22:23 +0000)]
fix extra 't' #8778

14 years agoTurned out that if you used explicit relative import syntax
Brett Cannon [Thu, 20 May 2010 18:37:55 +0000 (18:37 +0000)]
Turned out that if you used explicit relative import syntax
(e.g. from .os import sep) and it failed, import would still try the implicit
relative import semantics of an absolute import (from os import sep). That's
not right, so when level is negative, only do explicit relative import
semantics.

Fixes issue #7902. Thanks to Meador Inge for the patch.

14 years agolibpython.py: fix support of non-BMP unicode characters
Victor Stinner [Thu, 20 May 2010 11:29:45 +0000 (11:29 +0000)]
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 ago#8759: Fixed user paths in sysconfig for posix and os2 schemes
Tarek Ziadé [Wed, 19 May 2010 22:20:14 +0000 (22:20 +0000)]
#8759: Fixed user paths in sysconfig for posix and os2 schemes

14 years agoFix typo.
Stefan Krah [Wed, 19 May 2010 15:59:40 +0000 (15:59 +0000)]
Fix typo.

14 years agoFix typos in docstrings.
Stefan Krah [Wed, 19 May 2010 15:46:39 +0000 (15:46 +0000)]
Fix typos in docstrings.

14 years agoFix typo in argparse doc.
Ezio Melotti [Wed, 19 May 2010 00:32:52 +0000 (00:32 +0000)]
Fix typo in argparse doc.

14 years agoFix issue #8573 (asyncore._strerror bug): fixed os.strerror typo; included NameError...
Giampaolo Rodolà [Tue, 18 May 2010 20:04:31 +0000 (20:04 +0000)]
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 agoDoc Fix. Correct link to Zephyr ASDL Abstract page.
Senthil Kumaran [Tue, 18 May 2010 13:40:23 +0000 (13:40 +0000)]
Doc Fix. Correct link to Zephyr ASDL Abstract page.

14 years agoFixed minor typo in ReST markup.
Vinay Sajip [Tue, 18 May 2010 08:16:27 +0000 (08:16 +0000)]
Fixed minor typo in ReST markup.

14 years agoFix minor typo.
Senthil Kumaran [Tue, 18 May 2010 03:20:43 +0000 (03:20 +0000)]
Fix minor typo.

14 years agoIssue #7079: Fix a possible crash when closing a file object while using
Antoine Pitrou [Mon, 17 May 2010 19:56:59 +0000 (19:56 +0000)]
Issue #7079: Fix a possible crash when closing a file object while using
it from another thread.  Patch by Daniel Stutzbach.

14 years agoIssue #1285086: Speed up urllib.quote and urllib.unquote for simple cases.
Florent Xicluna [Mon, 17 May 2010 13:35:09 +0000 (13:35 +0000)]
Issue #1285086: Speed up urllib.quote and urllib.unquote for simple cases.

14 years agoupgraded distutils docs w.r.t. the manifest regeneration
Tarek Ziadé [Mon, 17 May 2010 10:54:43 +0000 (10:54 +0000)]
upgraded distutils docs w.r.t. the manifest regeneration

14 years agoSlight style cleanup.
Florent Xicluna [Mon, 17 May 2010 10:39:07 +0000 (10:39 +0000)]
Slight style cleanup.

14 years agoFixed #8688: Distutils now recalculates MANIFEST everytime.
Tarek Ziadé [Mon, 17 May 2010 10:06:20 +0000 (10:06 +0000)]
Fixed #8688: Distutils now recalculates MANIFEST everytime.

14 years agoAdd cross-reference to later section
Andrew M. Kuchling [Sun, 16 May 2010 23:31:16 +0000 (23:31 +0000)]
Add cross-reference to later section

14 years agoClear the OpenSSL error queue each time an error is signalled.
Antoine Pitrou [Sun, 16 May 2010 23:11:46 +0000 (23:11 +0000)]
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 agoDocument that SSL v2 is insecure.
Antoine Pitrou [Sun, 16 May 2010 14:16:56 +0000 (14:16 +0000)]
Document that SSL v2 is insecure.

14 years agoUse with open() as fo: ... instead of try: fo = open(...) finally: fo.close()
Victor Stinner [Sun, 16 May 2010 00:34:40 +0000 (00:34 +0000)]
Use with open() as fo: ... instead of try: fo = open(...) finally: fo.close()

fo is not set if the open() fails.

14 years agoUse 4-spaces for indentation (instead of tabs) in pgen outputs
Victor Stinner [Sat, 15 May 2010 22:55:28 +0000 (22:55 +0000)]
Use 4-spaces for indentation (instead of tabs) in pgen outputs

Regenerate (reindent) Python/graminit.c

14 years agoreindent _cursesmodule.c
Victor Stinner [Sat, 15 May 2010 22:19:27 +0000 (22:19 +0000)]
reindent _cursesmodule.c

Use untabify.py + emacs (python3 mode) + manual editions for
Py_BEGIN_ALLOW_THREADS / Py_END_ALLOW_THREADS

14 years agoRemove unused variable, and fix a compilation warning on Windows
Amaury Forgeot d'Arc [Sat, 15 May 2010 21:45:30 +0000 (21:45 +0000)]
Remove unused variable, and fix a compilation warning on Windows

14 years agoNEWS: strip trailing spaces
Victor Stinner [Sat, 15 May 2010 21:00:59 +0000 (21:00 +0000)]
NEWS: strip trailing spaces

14 years agouse TestCase skip method
Benjamin Peterson [Sat, 15 May 2010 17:48:55 +0000 (17:48 +0000)]
use TestCase skip method

14 years agoIf the timeout is exceeded, count the tests as skipped instead of just
Stefan Krah [Sat, 15 May 2010 09:31:08 +0000 (09:31 +0000)]
If the timeout is exceeded, count the tests as skipped instead of just
issuing a warning.

14 years agoFix regression introduced by r81154 (Issue #5099, subprocess destructor)
Victor Stinner [Fri, 14 May 2010 21:52:26 +0000 (21:52 +0000)]
Fix regression introduced by r81154 (Issue #5099, subprocess destructor)

14 years agoIssue #8711: add paragraph titles to c-api/unicode.rst
Victor Stinner [Fri, 14 May 2010 15:53:20 +0000 (15:53 +0000)]
Issue #8711: add paragraph titles to c-api/unicode.rst

(Python2 doesn't have PyUnicode_DecodeFSDefault*() functions)

14 years agoDoc: replace PEP xxx by :pep:`xxx` to create a link on the PEP
Victor Stinner [Fri, 14 May 2010 14:20:07 +0000 (14:20 +0000)]
Doc: replace PEP xxx by :pep:`xxx` to create a link on the PEP

14 years agosubprocess.Popen.__del__ referenced global objects, which is a no-no thanks to
Brett Cannon [Fri, 14 May 2010 00:21:48 +0000 (00:21 +0000)]
subprocess.Popen.__del__ referenced global objects, which is a no-no thanks to
interpreter shutdown semantics. Same issue goes for the methods that __del__
called. Now all the methods capture the global objects it needs as default
values to private parameters (could have stuck them on the class object itself,
but since the objects have nothing directly to do with the class that seemed
wrong).

There is no test as making one that works is hard. This patch was
verified against a consistently failing test in Mercurial's test suite, though,
so it has been tested in some regard.

Closes issue #5099. Thanks to Mary Stern for the bug report and Gabriel
Genellina for writing another patch for the same issue and attempting to write
a test.

14 years agotest_site was failing under darwin for non-framework builds because a test was
Brett Cannon [Thu, 13 May 2010 23:59:41 +0000 (23:59 +0000)]
test_site was failing under darwin for non-framework builds because a test was
assuming framework-specific site-packages directories were being used.

14 years agoRevert changeset r81150 which helped diagnose issue #8423 on some OS X buildbot.
Florent Xicluna [Thu, 13 May 2010 23:46:48 +0000 (23:46 +0000)]
Revert changeset r81150 which helped diagnose issue #8423 on some OS X buildbot.

14 years agoImprove test feedback to troubleshoot issue #8423 on OS X.
Florent Xicluna [Thu, 13 May 2010 21:41:05 +0000 (21:41 +0000)]
Improve test feedback to troubleshoot issue #8423 on OS X.

14 years agoBetter test skipping, with message in the log.
Florent Xicluna [Thu, 13 May 2010 21:40:01 +0000 (21:40 +0000)]
Better test skipping, with message in the log.

14 years agorip out mention of types.ListType #8703
Benjamin Peterson [Thu, 13 May 2010 21:14:10 +0000 (21:14 +0000)]
rip out mention of types.ListType #8703

14 years agoRevert the additional OS X information (r81140). Keep the endianness information.
Florent Xicluna [Thu, 13 May 2010 18:16:06 +0000 (18:16 +0000)]
Revert the additional OS X information (r81140).  Keep the endianness information.

14 years agoAdd sensible information about the OS X platform to diagnose issue #8423:
Florent Xicluna [Thu, 13 May 2010 17:05:29 +0000 (17:05 +0000)]
Add sensible information about the OS X platform to diagnose issue #8423:
test_pep277 fails on "x86 Tiger" buildbot but not on "PPC Tiger".

14 years agoFix verb tense in skip message.
Victor Stinner [Thu, 13 May 2010 16:22:15 +0000 (16:22 +0000)]
Fix verb tense in skip message.

Ooops, merge also r80334 (patch by r.david.murray)

14 years agoIssue #8422, test_genericpath: skip the creation of a directory with an invalid
Victor Stinner [Thu, 13 May 2010 16:18:14 +0000 (16:18 +0000)]
Issue #8422, test_genericpath: skip the creation of a directory with an invalid
UTF name on Mac OS X because the OS deny it (the name have to be a valid UTF8
string).

Merge r80163 from py3k branch.

14 years agoFix Issue8657 - adding git and git+ssh as know schemes.
Senthil Kumaran [Thu, 13 May 2010 03:25:21 +0000 (03:25 +0000)]
Fix Issue8657 - adding git and git+ssh as know schemes.

14 years agoFix unused variable in test_factorial.
Mark Dickinson [Wed, 12 May 2010 19:53:36 +0000 (19:53 +0000)]
Fix unused variable in test_factorial.

14 years ago#8696: add documentation for logging.config.dictConfig (PEP 391)
Andrew M. Kuchling [Wed, 12 May 2010 18:56:48 +0000 (18:56 +0000)]
#8696: add documentation for logging.config.dictConfig (PEP 391)

14 years agoImprove _ssl.c formatting
Antoine Pitrou [Wed, 12 May 2010 14:02:34 +0000 (14:02 +0000)]
Improve _ssl.c formatting

14 years agoGrammar fix
Andrew M. Kuchling [Wed, 12 May 2010 13:56:07 +0000 (13:56 +0000)]
Grammar fix

14 years ago- clarify Attr.name comment on the presence of colons in namespace mode
Fred Drake [Wed, 12 May 2010 02:24:50 +0000 (02:24 +0000)]
- clarify Attr.name comment on the presence of colons in namespace mode
- document Attr.value
- wrap some long lines

14 years agofix error introduced in previous commit, and the adjacent additional typo
Fred Drake [Wed, 12 May 2010 01:22:03 +0000 (01:22 +0000)]
fix error introduced in previous commit, and the adjacent additional typo

14 years agoLet's call this done
Andrew M. Kuchling [Wed, 12 May 2010 00:40:47 +0000 (00:40 +0000)]
Let's call this done

14 years agoRevision pass: lots of edits, typo fixes, rearrangements
Andrew M. Kuchling [Wed, 12 May 2010 00:38:44 +0000 (00:38 +0000)]
Revision pass: lots of edits, typo fixes, rearrangements

14 years agoRemoved the assertion that dispatcher.connected attribute must be False after a singl...
Giampaolo Rodolà [Wed, 12 May 2010 00:29:27 +0000 (00:29 +0000)]
Removed the assertion that dispatcher.connected attribute must be False after a single connect() call. Solaris and FreeBSD buildbots failures showed how connect() can succeed even in a single call. All bo failures should definitively be fixed now.

14 years agoIssue #8681: Make the zlib module's error messages more informative when
Antoine Pitrou [Tue, 11 May 2010 23:42:28 +0000 (23:42 +0000)]
Issue #8681: Make the zlib module's error messages more informative when
the zlib itself doesn't give any detailed explanation.

14 years agoIssue #8672: Add a zlib test ensuring that an incomplete stream can be
Antoine Pitrou [Tue, 11 May 2010 23:32:31 +0000 (23:32 +0000)]
Issue #8672: Add a zlib test ensuring that an incomplete stream can be
handled by a decompressor object without errors (it returns incomplete
uncompressed data).

14 years ago#8575 - Update and reorganize some _winreg contents.
Brian Curtin [Tue, 11 May 2010 19:13:13 +0000 (19:13 +0000)]
#8575 - Update and reorganize some _winreg contents.

I've removed the hopeful note about a future higher-level module since
it's been in there for quite a long time and nothing of the sort has
come up. There are a few places where markup was added to cross-reference
other sections, and many of the external links have been removed and now
point to newly created sections containing previously undocumented
information.

The Value Types section was created and it's contents were taken from
a function-specific area, since it applies to more than just that
function. It fits in better with the other newly documented constants.

14 years agofix typo
Fred Drake [Tue, 11 May 2010 18:12:27 +0000 (18:12 +0000)]
fix typo

14 years agoIssue #8674: fix another bogus overflow check in audioop module.
Mark Dickinson [Tue, 11 May 2010 13:05:30 +0000 (13:05 +0000)]
Issue #8674: fix another bogus overflow check in audioop module.

14 years agoIssue #8510: Remove nested 'main' functions (causing failure) in 3 configure tests;
Mark Dickinson [Tue, 11 May 2010 08:55:06 +0000 (08:55 +0000)]
Issue #8510: Remove nested 'main' functions (causing failure) in 3 configure tests;
remove some unnecessary '#include "confdefs.h"' lines.  Thanks Roumen Petrov.

14 years agoUse ';' after initialization macros to avoid confusing re-indenters
Andrew M. Kuchling [Mon, 10 May 2010 23:27:01 +0000 (23:27 +0000)]
Use ';' after initialization macros to avoid confusing re-indenters

14 years agoBreak long line in macros
Andrew M. Kuchling [Mon, 10 May 2010 23:24:09 +0000 (23:24 +0000)]
Break long line in macros

14 years agoFix typo
Andrew M. Kuchling [Mon, 10 May 2010 23:13:41 +0000 (23:13 +0000)]
Fix typo

14 years agoFix typo.
Georg Brandl [Mon, 10 May 2010 21:51:33 +0000 (21:51 +0000)]
Fix typo.

14 years agoConsolidate deprecation messages.
Georg Brandl [Mon, 10 May 2010 21:50:57 +0000 (21:50 +0000)]
Consolidate deprecation messages.

14 years agoFix reference direction.
Georg Brandl [Mon, 10 May 2010 21:46:50 +0000 (21:46 +0000)]
Fix reference direction.

14 years ago#8642: fix wrong function name.
Georg Brandl [Mon, 10 May 2010 21:02:51 +0000 (21:02 +0000)]
#8642: fix wrong function name.

14 years agoImproving help message for python -m unittest. Issue 8303.
Michael Foord [Mon, 10 May 2010 20:21:16 +0000 (20:21 +0000)]
Improving help message for python -m unittest. Issue 8303.

14 years agoAdd a link on maketrans().
Florent Xicluna [Mon, 10 May 2010 19:59:22 +0000 (19:59 +0000)]
Add a link on maketrans().

14 years agoMove { out of #if...#else block; this confuses Emacs' C-mode
Andrew M. Kuchling [Mon, 10 May 2010 17:18:25 +0000 (17:18 +0000)]
Move { out of #if...#else block; this confuses Emacs' C-mode

14 years agoIssue #8674: Fix incorrect and UB-inducing overflow checks in audioop
Mark Dickinson [Mon, 10 May 2010 16:07:42 +0000 (16:07 +0000)]
Issue #8674: Fix incorrect and UB-inducing overflow checks in audioop
module.  Thanks Tomas Hoger for the patch.

14 years agoIssue #8490: adds a more solid test suite for asyncore
Giampaolo Rodolà [Mon, 10 May 2010 15:33:22 +0000 (15:33 +0000)]
Issue #8490: adds a more solid test suite for asyncore

14 years agoLink to unittest2 article
Andrew M. Kuchling [Mon, 10 May 2010 15:03:35 +0000 (15:03 +0000)]
Link to unittest2 article

14 years agoUse title case
Andrew M. Kuchling [Mon, 10 May 2010 14:20:12 +0000 (14:20 +0000)]
Use title case

14 years agoMarkup fix; re-word a sentence
Andrew M. Kuchling [Mon, 10 May 2010 14:18:27 +0000 (14:18 +0000)]
Markup fix; re-word a sentence

14 years agofinish clause
Benjamin Peterson [Sun, 9 May 2010 21:09:40 +0000 (21:09 +0000)]
finish clause

14 years agoWrap multiline macros in a 'do {} while(0)', for safety.
Mark Dickinson [Sun, 9 May 2010 20:42:09 +0000 (20:42 +0000)]
Wrap multiline macros in a 'do {} while(0)', for safety.

14 years agoPost-detabification cleanup: whitespace fixes and long line rewraps only.
Mark Dickinson [Sun, 9 May 2010 20:30:29 +0000 (20:30 +0000)]
Post-detabification cleanup:  whitespace fixes and long line rewraps only.

14 years agoRemove spurious newlines, and add version number.
Antoine Pitrou [Sun, 9 May 2010 18:32:48 +0000 (18:32 +0000)]
Remove spurious newlines, and add version number.

14 years agoFixup indentation of PC/_msi.c
Antoine Pitrou [Sun, 9 May 2010 15:15:11 +0000 (15:15 +0000)]
Fixup indentation of PC/_msi.c