]> granicus.if.org Git - python/log
python
13 years agoCloses #13283: removal of two unused variable in locale.py
Jesus Cea [Mon, 31 Oct 2011 15:02:12 +0000 (16:02 +0100)]
Closes #13283: removal of two unused variable in locale.py

13 years agomerge closing of 2.5 branch
Martin v. Löwis [Mon, 31 Oct 2011 11:40:25 +0000 (12:40 +0100)]
merge closing of 2.5 branch

13 years agomerge closing of 2.5 branch
Martin v. Löwis [Mon, 31 Oct 2011 11:39:25 +0000 (12:39 +0100)]
merge closing of 2.5 branch

13 years ago2.5 is no longer maintained 2.5
Martin v. Löwis [Mon, 31 Oct 2011 11:38:50 +0000 (12:38 +0100)]
2.5 is no longer maintained

13 years agodocument turtle mainloop()/done() functions; thanks to Csaba Szepesvari from docs@
Sandro Tosi [Mon, 31 Oct 2011 09:08:14 +0000 (10:08 +0100)]
document turtle mainloop()/done() functions; thanks to Csaba Szepesvari from docs@

13 years agoIssue 13296: Fix IDLE to clear compile __future__ flags on shell restart.
Ned Deily [Mon, 31 Oct 2011 02:58:04 +0000 (19:58 -0700)]
Issue 13296: Fix IDLE to clear compile __future__ flags on shell restart.
(Patch by Roger Serwy)

13 years agocaught is the right pp of catch; thanks to Don Bennett from docs@
Sandro Tosi [Mon, 31 Oct 2011 01:40:26 +0000 (02:40 +0100)]
caught is the right pp of catch; thanks to Don Bennett from docs@

13 years agoImprove itertools docs with clearer examples of pure python equivalent code.
Raymond Hettinger [Sun, 30 Oct 2011 21:53:17 +0000 (14:53 -0700)]
Improve itertools docs with clearer examples of pure python equivalent code.

13 years agoIssue 13274: Make the pure python code for heapq more closely match the C implementa...
Raymond Hettinger [Sun, 30 Oct 2011 21:29:06 +0000 (14:29 -0700)]
Issue 13274:  Make the pure python code for heapq more closely match the C implementation for an undefined corner case.

13 years agoRemove unstable SSL tests in the absence of ssl.OP_NO_{SSLv2,SSLv3,TLSv1}
Antoine Pitrou [Sun, 30 Oct 2011 20:31:34 +0000 (21:31 +0100)]
Remove unstable SSL tests in the absence of ssl.OP_NO_{SSLv2,SSLv3,TLSv1}

13 years agoAdd Misc/NEWS entry for issue #10519
Petri Lehtinen [Sun, 30 Oct 2011 18:59:10 +0000 (20:59 +0200)]
Add Misc/NEWS entry for issue #10519

13 years agoremove unused variable
Benjamin Peterson [Sun, 30 Oct 2011 18:24:44 +0000 (14:24 -0400)]
remove unused variable

13 years agoFix the return value of set_discard (issue #10519)
Petri Lehtinen [Sun, 30 Oct 2011 12:31:27 +0000 (14:31 +0200)]
Fix the return value of set_discard (issue #10519)

13 years agoAvoid unnecessary recursive function calls (closes #10519)
Petri Lehtinen [Sun, 30 Oct 2011 11:55:02 +0000 (13:55 +0200)]
Avoid unnecessary recursive function calls (closes #10519)

13 years agoAdd a button to the code examples in the doc to show/hide the prompts and output.
Ezio Melotti [Sun, 30 Oct 2011 07:19:33 +0000 (09:19 +0200)]
Add a button to the code examples in the doc to show/hide the prompts and output.

13 years ago#13289: fix typo.
Ezio Melotti [Sat, 29 Oct 2011 07:40:20 +0000 (10:40 +0300)]
#13289: fix typo.

13 years agoCloses #7334: close source files on ElementTree.parse and iterparse (partial backport...
Florent Xicluna [Sat, 29 Oct 2011 01:38:56 +0000 (03:38 +0200)]
Closes #7334: close source files on ElementTree.parse and iterparse (partial backport of issue #10093 from 3.2).

13 years agobring is_integer into tested existence
Benjamin Peterson [Fri, 28 Oct 2011 23:42:48 +0000 (19:42 -0400)]
bring is_integer into tested existence

13 years agoOops, put fix news in the right section.
Barry Warsaw [Fri, 28 Oct 2011 20:16:58 +0000 (16:16 -0400)]
Oops, put fix news in the right section.

13 years ago- Issue #13218: Fix test_ssl failures on Debian/Ubuntu.
Barry Warsaw [Fri, 28 Oct 2011 20:14:44 +0000 (16:14 -0400)]
- Issue #13218: Fix test_ssl failures on Debian/Ubuntu.

13 years agoMinor fixes to the HTMLParser doc.
Ezio Melotti [Fri, 28 Oct 2011 11:20:08 +0000 (14:20 +0300)]
Minor fixes to the HTMLParser doc.

13 years agoImprove HTMLParser example in the doc.
Ezio Melotti [Fri, 28 Oct 2011 11:14:34 +0000 (14:14 +0300)]
Improve HTMLParser example in the doc.

13 years ago#13278: fix typo.
Ezio Melotti [Fri, 28 Oct 2011 09:22:25 +0000 (12:22 +0300)]
#13278: fix typo.

13 years agoAdded lost documentation cross-reference.
Vinay Sajip [Thu, 27 Oct 2011 16:51:13 +0000 (17:51 +0100)]
Added lost documentation cross-reference.

13 years agoadjust for change in assert bytecode
Benjamin Peterson [Thu, 27 Oct 2011 12:53:32 +0000 (08:53 -0400)]
adjust for change in assert bytecode

13 years agomerge heads
Benjamin Peterson [Thu, 27 Oct 2011 12:22:27 +0000 (08:22 -0400)]
merge heads

13 years agodon't let a tuple msg be interpreted as arguments to AssertionError (closes #13268)
Benjamin Peterson [Thu, 27 Oct 2011 12:21:59 +0000 (08:21 -0400)]
don't let a tuple msg be interpreted as arguments to AssertionError (closes #13268)

13 years agoadd a test for an assertion with tuple msg
Benjamin Peterson [Thu, 27 Oct 2011 12:20:01 +0000 (08:20 -0400)]
add a test for an assertion with tuple msg

13 years agoIssue #13237: Make the subprocess convenience helper documentation self-contained...
Nick Coghlan [Thu, 27 Oct 2011 07:55:13 +0000 (17:55 +1000)]
Issue #13237: Make the subprocess convenience helper documentation self-contained aside from the shared parameter description. Downgrade the pipe warnings at that level to notes (since those pipes are hidden, people are unlikely to even try it)

13 years agoIssue #10860: Skip the new test if HTTPS is not available
Petri Lehtinen [Wed, 26 Oct 2011 18:25:56 +0000 (21:25 +0300)]
Issue #10860: Skip the new test if HTTPS is not available

13 years agoIssue #13237: fix typo
Nick Coghlan [Wed, 26 Oct 2011 11:34:26 +0000 (21:34 +1000)]
Issue #13237: fix typo

13 years agoIssue #13237: remove some details that only apply to the 3.x version of this module...
Nick Coghlan [Wed, 26 Oct 2011 11:15:53 +0000 (21:15 +1000)]
Issue #13237: remove some details that only apply to the 3.x version of this module and cross reference the relocated warning about the dangers of invoking the shell with untrusted input

13 years agoIssue #13237: further updates to subprocess documentation
Nick Coghlan [Wed, 26 Oct 2011 11:05:56 +0000 (21:05 +1000)]
Issue #13237: further updates to subprocess documentation

13 years agoCorrected typo in comment.
Vinay Sajip [Tue, 25 Oct 2011 10:10:54 +0000 (11:10 +0100)]
Corrected typo in comment.

13 years agoRefactor a bit the codecs doc.
Ezio Melotti [Tue, 25 Oct 2011 07:46:22 +0000 (10:46 +0300)]
Refactor a bit the codecs doc.

13 years agoUpdated NEWS with fix for 13232.
Vinay Sajip [Mon, 24 Oct 2011 22:26:00 +0000 (23:26 +0100)]
Updated NEWS with fix for 13232.

13 years agoCloses #13232: Handle multiple encodings in exception logging.
Vinay Sajip [Mon, 24 Oct 2011 22:23:02 +0000 (23:23 +0100)]
Closes #13232: Handle multiple encodings in exception logging.

13 years agomerge heads
Petri Lehtinen [Mon, 24 Oct 2011 18:29:20 +0000 (21:29 +0300)]
merge heads

13 years agoIssue #13018: Fix reference leaks in error paths in dictobject.c.
Petri Lehtinen [Mon, 24 Oct 2011 17:59:29 +0000 (20:59 +0300)]
Issue #13018: Fix reference leaks in error paths in dictobject.c.
Patch by Suman Saha.

13 years agoIssue #10332: multiprocessing: fix a race condition when a Pool is closed
Charles-François Natali [Mon, 24 Oct 2011 16:43:51 +0000 (18:43 +0200)]
Issue #10332: multiprocessing: fix a race condition when a Pool is closed
before all tasks have completed.

13 years agomerge heads
Benjamin Peterson [Mon, 24 Oct 2011 12:51:46 +0000 (08:51 -0400)]
merge heads

13 years agonote callable is back in 3.2
Benjamin Peterson [Mon, 24 Oct 2011 12:51:15 +0000 (08:51 -0400)]
note callable is back in 3.2

13 years agoIssue #13237: Rearrange subprocess module documentation to emphasise the convenience...
Nick Coghlan [Mon, 24 Oct 2011 12:19:40 +0000 (22:19 +1000)]
Issue #13237: Rearrange subprocess module documentation to emphasise the convenience functions and commonly needed arguments

13 years agoIssue #13141: Demonstrate recommended style for SocketServer examples.
Florent Xicluna [Sun, 23 Oct 2011 21:07:22 +0000 (23:07 +0200)]
Issue #13141: Demonstrate recommended style for SocketServer examples.

13 years agoWhoops, PyException_GetTraceback() is not documented on 2.7
Petri Lehtinen [Sun, 23 Oct 2011 18:52:10 +0000 (21:52 +0300)]
Whoops, PyException_GetTraceback() is not documented on 2.7

13 years agoAdd the green "New reference" note to the doc of PyException_GetTraceback()
Petri Lehtinen [Sun, 23 Oct 2011 18:34:57 +0000 (21:34 +0300)]
Add the green "New reference" note to the doc of PyException_GetTraceback()

13 years agoNote that the #1548891 fix indirectly fixes shlex (#6988, #1170)
Éric Araujo [Sun, 23 Oct 2011 02:37:51 +0000 (04:37 +0200)]
Note that the #1548891 fix indirectly fixes shlex (#6988, #1170)

13 years agoIssue #1548891: The cStringIO.StringIO() constructor now encodes unicode
Antoine Pitrou [Sat, 22 Oct 2011 19:26:01 +0000 (21:26 +0200)]
Issue #1548891: The cStringIO.StringIO() constructor now encodes unicode
arguments with the system default encoding just like the write() method
does, instead of converting it to a raw buffer.

13 years agoOops, forgot issue number
Antoine Pitrou [Fri, 21 Oct 2011 20:22:43 +0000 (22:22 +0200)]
Oops, forgot issue number

13 years agoAdd test for fix of issue #1730114.
Antoine Pitrou [Fri, 21 Oct 2011 20:22:04 +0000 (22:22 +0200)]
Add test for fix of issue #1730114.

13 years agoIssue #9168: now smtpd is able to bind privileged port.
Florent Xicluna [Thu, 20 Oct 2011 21:21:58 +0000 (23:21 +0200)]
Issue #9168: now smtpd is able to bind privileged port.

13 years ago#13233: fix typo.
Ezio Melotti [Thu, 20 Oct 2011 16:49:29 +0000 (19:49 +0300)]
#13233: fix typo.

13 years agoMerge heads.
Ezio Melotti [Thu, 20 Oct 2011 16:43:24 +0000 (19:43 +0300)]
Merge heads.

13 years agoNews entry for Issue12529 and Issue12604
Senthil Kumaran [Thu, 20 Oct 2011 16:32:59 +0000 (00:32 +0800)]
News entry for Issue12529 and Issue12604

13 years ago#13219: clarify section about character sets in the re documentation.
Ezio Melotti [Thu, 20 Oct 2011 16:31:08 +0000 (19:31 +0300)]
#13219: clarify section about character sets in the re documentation.

13 years agoFix Issue 12604 - Use a proper no-op macro expansion for VTRACE macro in _sre.c
Senthil Kumaran [Wed, 19 Oct 2011 18:13:23 +0000 (02:13 +0800)]
Fix Issue 12604 - Use a proper no-op macro expansion for VTRACE macro in _sre.c

13 years agoFix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
Senthil Kumaran [Wed, 19 Oct 2011 17:38:35 +0000 (01:38 +0800)]
Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
exceptions, when a document with timestamp earlier than 1980 is provided to
zipfile. Patch contributed by  Petri Lehtinen.

13 years agoFix closes Issue12529 - cgi.parse_header failure on double quotes and
Senthil Kumaran [Wed, 19 Oct 2011 16:52:24 +0000 (00:52 +0800)]
Fix closes Issue12529 - cgi.parse_header failure on double quotes and
semicolons. Patch by Ben Darnell and Petri Lehtinen.

13 years agoRemove duplication.
Ezio Melotti [Wed, 19 Oct 2011 07:39:35 +0000 (10:39 +0300)]
Remove duplication.

13 years agoFixes #10860: Handle empty port after port delimiter in httplib
Łukasz Langa [Tue, 18 Oct 2011 15:16:00 +0000 (17:16 +0200)]
Fixes #10860: Handle empty port after port delimiter in httplib

Thanks, Shawn Ligocki!

3.x version will come as a separate patch.

13 years ago#12277: add missing comma.
Ezio Melotti [Tue, 18 Oct 2011 10:02:11 +0000 (13:02 +0300)]
#12277: add missing comma.

13 years agoIssue #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now avail...
Nadeem Vawda [Mon, 17 Oct 2011 17:33:38 +0000 (19:33 +0200)]
Issue #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows.

13 years agonormalize whitespace in Lib/distutils/msvc9compiler.py
Mark Hammond [Mon, 17 Oct 2011 00:35:06 +0000 (11:35 +1100)]
normalize whitespace in Lib/distutils/msvc9compiler.py

13 years agoIssue #7833: Ext. modules built using distutils on Windows no longer get a manifest
Mark Hammond [Mon, 17 Oct 2011 00:05:36 +0000 (11:05 +1100)]
Issue #7833: Ext. modules built using distutils on Windows no longer get a manifest

13 years agoPyEval_CallObject requires a tuple of args (closes #13186)
Benjamin Peterson [Sat, 15 Oct 2011 17:43:21 +0000 (13:43 -0400)]
PyEval_CallObject requires a tuple of args (closes #13186)

13 years agoIncrease test coverage for distutils.filelist (#11751).
Éric Araujo [Fri, 14 Oct 2011 16:15:31 +0000 (18:15 +0200)]
Increase test coverage for distutils.filelist (#11751).

Patch by Justin Love.

13 years agoUpdate dead references from py.org/dev/faq to the devguide (#13176)
Éric Araujo [Fri, 14 Oct 2011 16:05:56 +0000 (18:05 +0200)]
Update dead references from py.org/dev/faq to the devguide (#13176)

13 years agoIssue #13159: Replace FileIO's quadratic-time buffer growth algorithm with a linear...
Nadeem Vawda [Thu, 13 Oct 2011 11:52:46 +0000 (13:52 +0200)]
Issue #13159: Replace FileIO's quadratic-time buffer growth algorithm with a linear-time one.

Also fix the builtin file class and the bz2 module, which used the same algorithm.

13 years agoIssue #13156: Add an entry in Misc/NEWS.
Charles-François Natali [Wed, 12 Oct 2011 20:29:09 +0000 (22:29 +0200)]
Issue #13156: Add an entry in Misc/NEWS.

13 years agoMerge.
Charles-François Natali [Wed, 12 Oct 2011 19:10:02 +0000 (21:10 +0200)]
Merge.

13 years agoIssue #13156: revert changeset f6feed6ec3f9, which was only relevant for native
Charles-François Natali [Wed, 12 Oct 2011 19:07:54 +0000 (21:07 +0200)]
Issue #13156: revert changeset f6feed6ec3f9, which was only relevant for native
TLS implementations, and fails with the ad-hoc TLS implementation when a thread
doesn't have an auto thread state (e.g. a thread created outside of Python
calling into a subinterpreter).

13 years agoFix/improve markup in whatsnew/2.7.
Ezio Melotti [Sun, 9 Oct 2011 21:25:47 +0000 (00:25 +0300)]
Fix/improve markup in whatsnew/2.7.

13 years ago#13138: add missing versionadded. Patch by Andreas Stührk.
Ezio Melotti [Sun, 9 Oct 2011 20:56:51 +0000 (23:56 +0300)]
#13138: add missing versionadded.  Patch by Andreas Stührk.

13 years agoClean-up and improve the priority queue example in the heapq docs.
Raymond Hettinger [Sun, 9 Oct 2011 16:32:43 +0000 (17:32 +0100)]
Clean-up and improve the priority queue example in the heapq docs.

13 years agoIssue #13053: Added section on migrating from CObject to Capsule
Larry Hastings [Sun, 9 Oct 2011 12:03:44 +0000 (13:03 +0100)]
Issue #13053: Added section on migrating from CObject to Capsule
to howto/cporting.rst.

13 years agoFix distutils’ check and register Unicode handling (#13114).
Éric Araujo [Sun, 9 Oct 2011 05:11:19 +0000 (07:11 +0200)]
Fix distutils’ check and register Unicode handling (#13114).

The check command was fixed by Kirill Kuzminykh.

The register command was using StringIO.getvalue, which uses “''.join”
and thus coerces to str using the default encoding (ASCII), so I changed
the code to use one extra intermediary list and correctly encode to
UTF-8.

13 years agoBranch merge
Éric Araujo [Sun, 9 Oct 2011 04:33:54 +0000 (06:33 +0200)]
Branch merge

13 years agoFix a missing encoding argument when opening a text file in some of iobench's subtests.
Antoine Pitrou [Sat, 8 Oct 2011 17:41:34 +0000 (19:41 +0200)]
Fix a missing encoding argument when opening a text file in some of iobench's subtests.
(found by Georg)

13 years agoFix test_sysconfig when prefix != exec-prefix (#9100).
Éric Araujo [Sat, 8 Oct 2011 00:49:12 +0000 (02:49 +0200)]
Fix test_sysconfig when prefix != exec-prefix (#9100).

Reported by Zsolt Cserna.

13 years agoMake C code in one distutils test comply with ISO C (#10359).
Éric Araujo [Sat, 8 Oct 2011 00:15:55 +0000 (02:15 +0200)]
Make C code in one distutils test comply with ISO C (#10359).

Patch by Hallvard B Furuseth.

13 years agoFix a typo and a broken link (part of #10536).
Éric Araujo [Sat, 8 Oct 2011 00:15:04 +0000 (02:15 +0200)]
Fix a typo and a broken link (part of #10536).

Found by Franz Glasner in #2504.

13 years agoIssue #7367: Ensure test directory always gets removed.
Ned Deily [Fri, 7 Oct 2011 19:01:18 +0000 (12:01 -0700)]
Issue #7367: Ensure test directory always gets removed.

13 years agoIssue #12823: remove broken link and replace it with another resource.
Antoine Pitrou [Fri, 7 Oct 2011 15:03:01 +0000 (17:03 +0200)]
Issue #12823: remove broken link and replace it with another resource.

13 years agoIssue #7425 and Issue #7367: add NEWS items.
Ned Deily [Thu, 6 Oct 2011 21:29:49 +0000 (14:29 -0700)]
Issue #7425 and Issue #7367: add NEWS items.

13 years agoIssue #7367: Fix pkgutil.walk_paths to skip directories whose
Ned Deily [Thu, 6 Oct 2011 21:17:47 +0000 (14:17 -0700)]
Issue #7367: Fix pkgutil.walk_paths to skip directories whose
contents cannot be read.

13 years agoIssue #7425: Prevent pydoc -k failures due to module import errors.
Ned Deily [Thu, 6 Oct 2011 21:17:44 +0000 (14:17 -0700)]
Issue #7425: Prevent pydoc -k failures due to module import errors.
(Backport to 2.7 of existing 3.x fix)

13 years agoIssue #7367: Add test case to test_pkgutil for walking path with
Ned Deily [Thu, 6 Oct 2011 21:17:41 +0000 (14:17 -0700)]
Issue #7367: Add test case to test_pkgutil for walking path with
an unreadable directory.

13 years agoIssue #7425: Refactor test_pydoc test case for '-k' behavior and add
Ned Deily [Thu, 6 Oct 2011 21:17:34 +0000 (14:17 -0700)]
Issue #7425: Refactor test_pydoc test case for '-k' behavior and add
new test cases for importing bad packages and unreadable packages dirs.

13 years agoIssue #13070: Fix a crash when a TextIOWrapper caught in a reference cycle
Charles-François Natali [Thu, 6 Oct 2011 17:09:45 +0000 (19:09 +0200)]
Issue #13070: Fix a crash when a TextIOWrapper caught in a reference cycle
would be finalized after the reference to its underlying BufferedRWPair's
writer got cleared by the GC.

13 years agoBranch merge
Éric Araujo [Thu, 6 Oct 2011 11:19:34 +0000 (13:19 +0200)]
Branch merge

13 years agoEnable the only tests for sys.gettrace
Amaury Forgeot d'Arc [Wed, 5 Oct 2011 20:34:51 +0000 (22:34 +0200)]
Enable the only tests for sys.gettrace

13 years agoIssue13073 - Address review comments and add versionchanged information in the docs.
Senthil Kumaran [Wed, 5 Oct 2011 15:52:49 +0000 (23:52 +0800)]
Issue13073 - Address review comments and add versionchanged information in the docs.

13 years agoFix typo and case in a recently added test
Éric Araujo [Wed, 5 Oct 2011 00:35:09 +0000 (02:35 +0200)]
Fix typo and case in a recently added test

13 years agoFix markup used in the documentation of sys.prefix and sys.exec_prefix.
Éric Araujo [Wed, 5 Oct 2011 00:34:28 +0000 (02:34 +0200)]
Fix markup used in the documentation of sys.prefix and sys.exec_prefix.

- Using the file role with {placeholders} is IMO clearer than fake
Python code.

- The fact that sys.version[:3] gives '2.7' is a CPython detail and
should not be advertised (see #9442), even if some stdlib modules
currently rely on that detail.

13 years agoMove doc of sys.dont_write_bytecode to make all attributes sorted again
Éric Araujo [Wed, 5 Oct 2011 00:25:58 +0000 (02:25 +0200)]
Move doc of sys.dont_write_bytecode to make all attributes sorted again

13 years agoTry to fix linking failures under Windows
Antoine Pitrou [Tue, 4 Oct 2011 12:45:32 +0000 (14:45 +0200)]
Try to fix linking failures under Windows

13 years agoRemove all other uses of the C tolower()/toupper() which could break with a Turkish...
Antoine Pitrou [Tue, 4 Oct 2011 11:55:37 +0000 (13:55 +0200)]
Remove all other uses of the C tolower()/toupper() which could break with a Turkish locale.
(except in the strop module, which is deprecated anyway)

13 years agoIssue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale.
Antoine Pitrou [Tue, 4 Oct 2011 11:38:04 +0000 (13:38 +0200)]
Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale.
Reported and diagnosed by Thomas Kluyver.

13 years agoAvoid testing stuff that's been fixed in 2.7 on older Pythons
Antoine Pitrou [Tue, 4 Oct 2011 10:00:13 +0000 (12:00 +0200)]
Avoid testing stuff that's been fixed in 2.7 on older Pythons

13 years agoIssue #7689: Allow pickling of dynamically created classes when their
Antoine Pitrou [Tue, 4 Oct 2011 07:34:48 +0000 (09:34 +0200)]
Issue #7689: Allow pickling of dynamically created classes when their
metaclass is registered with copyreg.  Patch by Nicolas M. Thiéry and
Craig Citro.