]> granicus.if.org Git - python/log
python
12 years agoIssue #14040: Remove rarely used file name suffixes for C extensions (under POSIX...
Antoine Pitrou [Mon, 20 Feb 2012 18:41:11 +0000 (19:41 +0100)]
Issue #14040: Remove rarely used file name suffixes for C extensions (under POSIX mainly).

This will improve import performance a bit (especially under importlib).

12 years agoIssue #13641: Decoding functions in the base64 module now accept ASCII-only unicode...
Antoine Pitrou [Mon, 20 Feb 2012 18:30:23 +0000 (19:30 +0100)]
Issue #13641: Decoding functions in the base64 module now accept ASCII-only unicode strings.
Patch by Catalin Iacob.

12 years agomerge heads
Benjamin Peterson [Mon, 20 Feb 2012 14:02:57 +0000 (09:02 -0500)]
merge heads

12 years agowrite versionadded
Benjamin Peterson [Mon, 20 Feb 2012 13:48:25 +0000 (08:48 -0500)]
write versionadded

12 years ago_relax_case -> _make_relax_case
Antoine Pitrou [Mon, 20 Feb 2012 12:52:47 +0000 (13:52 +0100)]
_relax_case -> _make_relax_case

12 years agocheck for NULL to fix segfault
Benjamin Peterson [Mon, 20 Feb 2012 01:36:12 +0000 (20:36 -0500)]
check for NULL to fix segfault

12 years agouse new generic __dict__ descriptor implementations
Benjamin Peterson [Mon, 20 Feb 2012 01:02:57 +0000 (20:02 -0500)]
use new generic __dict__ descriptor implementations

12 years agoadd generic implementation of a __dict__ descriptor for C types
Benjamin Peterson [Mon, 20 Feb 2012 00:59:10 +0000 (19:59 -0500)]
add generic implementation of a __dict__ descriptor for C types

12 years agoMerge
Antoine Pitrou [Mon, 20 Feb 2012 00:52:17 +0000 (01:52 +0100)]
Merge

12 years agoMerge 3.2
Éric Araujo [Mon, 20 Feb 2012 00:53:09 +0000 (01:53 +0100)]
Merge 3.2

12 years agoIssue #14043: Speed up importlib's _FileFinder by at least 8x, and add a new importli...
Antoine Pitrou [Mon, 20 Feb 2012 00:48:16 +0000 (01:48 +0100)]
Issue #14043: Speed up importlib's _FileFinder by at least 8x, and add a new importlib.invalidate_caches() function.

importlib is now often faster than imp.find_module() at finding modules.

12 years agoAdd missing “::” markup.
Éric Araujo [Mon, 20 Feb 2012 00:44:55 +0000 (01:44 +0100)]
Add missing “::” markup.

Also wrap two looong lines.

12 years agoFix a failing importlib test under Windows.
Brett Cannon [Mon, 20 Feb 2012 00:36:44 +0000 (19:36 -0500)]
Fix a failing importlib test under Windows.

Closes issue #14054.

12 years agofix test now that staticmethod and classmethod are bigger
Benjamin Peterson [Mon, 20 Feb 2012 00:16:47 +0000 (19:16 -0500)]
fix test now that staticmethod and classmethod are bigger

12 years agoFix last remaining build issues of _ssl under old OpenSSLs. Patch by Vinay.
Antoine Pitrou [Sun, 19 Feb 2012 20:22:39 +0000 (21:22 +0100)]
Fix last remaining build issues of _ssl under old OpenSSLs. Patch by Vinay.

12 years agoCreate _attr/_attrNS lazily.
Martin v. Löwis [Sun, 19 Feb 2012 19:55:05 +0000 (20:55 +0100)]
Create _attr/_attrNS lazily.

12 years agoUse __slots__ throughout instead of __dict__, to reduce the memory usage.
Martin v. Löwis [Sun, 19 Feb 2012 19:25:12 +0000 (20:25 +0100)]
Use __slots__ throughout instead of __dict__, to reduce the memory usage.

12 years agoIssue #13605: merge with 3.2
Sandro Tosi [Sun, 19 Feb 2012 18:54:23 +0000 (19:54 +0100)]
Issue #13605: merge with 3.2

12 years agoIssue #13605: use print() in argparse nargs example
Sandro Tosi [Sun, 19 Feb 2012 18:54:00 +0000 (19:54 +0100)]
Issue #13605: use print() in argparse nargs example

12 years agoinitialize __dict__ if needed
Benjamin Peterson [Sun, 19 Feb 2012 15:17:30 +0000 (10:17 -0500)]
initialize __dict__ if needed

12 years agomerge with 3.2
Sandro Tosi [Sun, 19 Feb 2012 11:30:47 +0000 (12:30 +0100)]
merge with 3.2

12 years agodon't split 'Hye-Shik Chang' name; thanks to Sergey from docs@
Sandro Tosi [Sun, 19 Feb 2012 11:30:28 +0000 (12:30 +0100)]
don't split 'Hye-Shik Chang' name; thanks to Sergey from docs@

12 years agomerge with 3.2
Sandro Tosi [Sun, 19 Feb 2012 11:28:18 +0000 (12:28 +0100)]
merge with 3.2

12 years agoIndent 'File' in memoryview example, so it is correctly highlighted
Sandro Tosi [Sun, 19 Feb 2012 11:28:01 +0000 (12:28 +0100)]
Indent 'File' in memoryview example, so it is correctly highlighted

12 years agouse defaults
Benjamin Peterson [Sun, 19 Feb 2012 06:16:13 +0000 (01:16 -0500)]
use defaults

12 years agomerge 3.2
Benjamin Peterson [Sun, 19 Feb 2012 06:14:21 +0000 (01:14 -0500)]
merge 3.2

12 years agouse Py_CLEAR
Benjamin Peterson [Sun, 19 Feb 2012 06:11:56 +0000 (01:11 -0500)]
use Py_CLEAR

12 years agoallow arbitrary attributes on classmethod and staticmethod (closes #14051)
Benjamin Peterson [Sun, 19 Feb 2012 06:10:25 +0000 (01:10 -0500)]
allow arbitrary attributes on classmethod and staticmethod (closes #14051)

12 years agoMERGE: Test for issue #13500
Jesus Cea [Sun, 19 Feb 2012 02:54:59 +0000 (03:54 +0100)]
MERGE: Test for issue #13500

12 years agoTest for issue #13500
Jesus Cea [Sun, 19 Feb 2012 02:54:29 +0000 (03:54 +0100)]
Test for issue #13500

12 years agoTest for issue #13500
Jesus Cea [Sun, 19 Feb 2012 02:52:23 +0000 (03:52 +0100)]
Test for issue #13500

12 years agomerge with 3.2
Sandro Tosi [Sat, 18 Feb 2012 15:06:39 +0000 (16:06 +0100)]
merge with 3.2

12 years agofix error in memoryview example; thanks to kan lianlian from docs@
Sandro Tosi [Sat, 18 Feb 2012 15:05:34 +0000 (16:05 +0100)]
fix error in memoryview example; thanks to kan lianlian from docs@

12 years agoIssue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
Charles-François Natali [Sat, 18 Feb 2012 14:02:10 +0000 (15:02 +0100)]
Issue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
upon malformed POST request.

12 years agoIssue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
Charles-François Natali [Sat, 18 Feb 2012 13:53:41 +0000 (14:53 +0100)]
Issue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
upon malformed POST request.

12 years agoIssue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
Charles-François Natali [Sat, 18 Feb 2012 13:42:57 +0000 (14:42 +0100)]
Issue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
upon malformed POST request.

12 years agoMerge with 3.2 closes 14023
Terry Jan Reedy [Sat, 18 Feb 2012 00:58:41 +0000 (19:58 -0500)]
Merge with 3.2 closes 14023

12 years agoIssue 14023 Revert edit to 2.7 version. (I suspect edit is from when we thought
Terry Jan Reedy [Sat, 18 Feb 2012 00:56:58 +0000 (19:56 -0500)]
Issue 14023 Revert edit to 2.7 version. (I suspect edit is from when we thought
to to makes bytes mutable, before deciding to add bytearrays.)

12 years ago#14020: merge with 3.2.
Ezio Melotti [Sat, 18 Feb 2012 00:03:35 +0000 (02:03 +0200)]
#14020: merge with 3.2.

12 years ago#14020: improve HTMLParser documentation.
Ezio Melotti [Sat, 18 Feb 2012 00:01:36 +0000 (02:01 +0200)]
#14020: improve HTMLParser documentation.

12 years agoMerge branch '3.2'
Petri Lehtinen [Fri, 17 Feb 2012 19:36:52 +0000 (21:36 +0200)]
Merge branch '3.2'

Closes #11689.

12 years agoFix a variable scoping error in an sqlite3 test
Petri Lehtinen [Fri, 17 Feb 2012 19:30:55 +0000 (21:30 +0200)]
Fix a variable scoping error in an sqlite3 test

Closes #11689.

12 years agoTry to really fix compilation failures of the _ssl module under very old OpenSSLs.
Antoine Pitrou [Fri, 17 Feb 2012 17:47:54 +0000 (18:47 +0100)]
Try to really fix compilation failures of the _ssl module under very old OpenSSLs.

12 years agoBranch merge
Éric Araujo [Fri, 17 Feb 2012 17:10:11 +0000 (18:10 +0100)]
Branch merge

12 years agoFix code I unwittingly broke in b0e2d6592a1f (#14038)
Éric Araujo [Fri, 17 Feb 2012 16:26:30 +0000 (17:26 +0100)]
Fix code I unwittingly broke in b0e2d6592a1f (#14038)

12 years agoFix importlib.test.__main__ to only worry about command-line flags when directly...
Brett Cannon [Fri, 17 Feb 2012 15:44:24 +0000 (10:44 -0500)]
Fix importlib.test.__main__ to only worry about command-line flags when directly executed.

12 years agoOptimize importlib's case-sensitivity check by wasting as little time as possible...
Brett Cannon [Fri, 17 Feb 2012 14:46:48 +0000 (09:46 -0500)]
Optimize importlib's case-sensitivity check by wasting as little time as possible under case-sensitive OSs.

12 years agoHave importlib.test use argparse instead of some hacked up solution.
Brett Cannon [Fri, 17 Feb 2012 14:37:39 +0000 (09:37 -0500)]
Have importlib.test use argparse instead of some hacked up solution.

12 years agoHave importlib use os.replace() for atomic renaming.
Brett Cannon [Fri, 17 Feb 2012 14:26:53 +0000 (09:26 -0500)]
Have importlib use os.replace() for atomic renaming.

Closes issue #13961. Thanks to Charles-François Natali for the patch.

12 years agoChange the python3 hardlink to a symlink, and correct some misuse of the PYTHON var...
Nick Coghlan [Fri, 17 Feb 2012 13:17:34 +0000 (23:17 +1000)]
Change the python3 hardlink to a symlink, and correct some misuse of the PYTHON var in the makefile

12 years agoFix compilation when SSL_OP_SINGLE_ECDH_USE isn't defined
Antoine Pitrou [Fri, 17 Feb 2012 10:53:10 +0000 (11:53 +0100)]
Fix compilation when SSL_OP_SINGLE_ECDH_USE isn't defined

12 years agoTweak the handling of the empty string in sys.path for importlib.
Brett Cannon [Thu, 16 Feb 2012 23:12:00 +0000 (18:12 -0500)]
Tweak the handling of the empty string in sys.path for importlib.
It seems better to cache the finder for the cwd under its full path
insetad of '' in case the cwd changes. Otherwise FileFinder needs to
dynamically change itself based on whether it is given '' instead of
caching a finder for every change to the cwd.

12 years agoMerge
Brett Cannon [Thu, 16 Feb 2012 23:03:47 +0000 (18:03 -0500)]
Merge

12 years agoimportlib.__import__() now raises ValueError when level < 0.
Brett Cannon [Thu, 16 Feb 2012 22:47:48 +0000 (17:47 -0500)]
importlib.__import__() now raises ValueError when level < 0.
This is to bring it more in line with what PEP 328 set out to do with
removing ambiguous absolute/relative import semantics.

12 years agofix the _namespace_map cleanup for cElementTree tests.
Florent Xicluna [Thu, 16 Feb 2012 22:28:35 +0000 (23:28 +0100)]
fix the _namespace_map cleanup for cElementTree tests.

12 years agoThe C accelerator was not always imported for cElementTree's tests. (there's still...
Florent Xicluna [Thu, 16 Feb 2012 22:17:31 +0000 (23:17 +0100)]
The C accelerator was not always imported for cElementTree's tests. (there's still an issue with --huntrleaks switch)

12 years agoMerge branch '3.2'
Petri Lehtinen [Thu, 16 Feb 2012 19:43:41 +0000 (21:43 +0200)]
Merge branch '3.2'

Closes #13995.

12 years agosqlite3: Fix documentation errors concerning Cursor.rowcount
Petri Lehtinen [Thu, 16 Feb 2012 19:39:03 +0000 (21:39 +0200)]
sqlite3: Fix documentation errors concerning Cursor.rowcount

Closes #13995.

12 years agoMerge.
Charles-François Natali [Thu, 16 Feb 2012 18:54:48 +0000 (19:54 +0100)]
Merge.

12 years agoIssue #13878: Fix random test_sched failures.
Charles-François Natali [Thu, 16 Feb 2012 18:51:45 +0000 (19:51 +0100)]
Issue #13878: Fix random test_sched failures.

12 years agoIssue #13878: Fix random test_sched failures.
Charles-François Natali [Thu, 16 Feb 2012 18:49:48 +0000 (19:49 +0100)]
Issue #13878: Fix random test_sched failures.

12 years agoRefactor importlib.__import__() and _gcd_import() to facilitate using
Brett Cannon [Thu, 16 Feb 2012 18:43:41 +0000 (13:43 -0500)]
Refactor importlib.__import__() and _gcd_import() to facilitate using
an __import__ implementation that takes care of basics in C and punts
to importlib for more complicated code.

12 years agoAdd test for packaging.util.set_platform (#13974).
Éric Araujo [Thu, 16 Feb 2012 18:32:17 +0000 (19:32 +0100)]
Add test for packaging.util.set_platform (#13974).

Patch by Tshepang Lekhonkhobe.

12 years agomake TestAccelerator[Not]Imported for ElementTree more robust
Eli Bendersky [Thu, 16 Feb 2012 17:55:29 +0000 (19:55 +0200)]
make TestAccelerator[Not]Imported for ElementTree more robust

12 years agoDisabling a test that fails on some bots. Will investigate the failure soon
Eli Bendersky [Thu, 16 Feb 2012 16:08:44 +0000 (18:08 +0200)]
Disabling a test that fails on some bots. Will investigate the failure soon

12 years agomerge.
Gregory P. Smith [Thu, 16 Feb 2012 08:36:04 +0000 (00:36 -0800)]
merge.

12 years agoIssue #2489: Fix bug in _copy loop that could consume 100% cpu on EOF.
Gregory P. Smith [Thu, 16 Feb 2012 08:35:43 +0000 (00:35 -0800)]
Issue #2489: Fix bug in _copy loop that could consume 100% cpu on EOF.

12 years agodon't use assertSameElements.
Gregory P. Smith [Thu, 16 Feb 2012 08:34:12 +0000 (00:34 -0800)]
don't use assertSameElements.

12 years agoNEWS entry for previous commit.
Gregory P. Smith [Thu, 16 Feb 2012 08:30:50 +0000 (00:30 -0800)]
NEWS entry for previous commit.

12 years agoIssue #2489: Fix bug in _copy loop that could consume 100% cpu on EOF.
Gregory P. Smith [Thu, 16 Feb 2012 08:29:12 +0000 (00:29 -0800)]
Issue #2489: Fix bug in _copy loop that could consume 100% cpu on EOF.

12 years agoin the tests of ElementTree, verify that the C accelerator is imported or not importe...
Eli Bendersky [Thu, 16 Feb 2012 04:52:39 +0000 (06:52 +0200)]
in the tests of ElementTree, verify that the C accelerator is imported or not imported as expected

12 years ago(Merge 3.2) Issue #13913: Another fix test_pep3120 for the UTF-8 codec name
Victor Stinner [Wed, 15 Feb 2012 22:45:34 +0000 (23:45 +0100)]
(Merge 3.2) Issue #13913: Another fix test_pep3120 for the UTF-8 codec name

12 years agoIssue #13913: Another fix test_pep3120 for the UTF-8 codec name
Victor Stinner [Wed, 15 Feb 2012 22:44:03 +0000 (23:44 +0100)]
Issue #13913: Another fix test_pep3120 for the UTF-8 codec name

12 years agoIssue #11836: document and expose multiprocessing.SimpleQueue
Sandro Tosi [Wed, 15 Feb 2012 22:27:00 +0000 (23:27 +0100)]
Issue #11836: document and expose multiprocessing.SimpleQueue

12 years agoIssue #11836: document multiprocessing.queues.SimpleQueue
Sandro Tosi [Wed, 15 Feb 2012 22:14:21 +0000 (23:14 +0100)]
Issue #11836: document multiprocessing.queues.SimpleQueue

12 years agoMerge
Antoine Pitrou [Wed, 15 Feb 2012 21:31:23 +0000 (22:31 +0100)]
Merge

12 years agoMerge
Antoine Pitrou [Wed, 15 Feb 2012 21:30:29 +0000 (22:30 +0100)]
Merge

12 years agoIssue #13014: Fix a possible reference leak in SSLSocket.getpeercert().
Antoine Pitrou [Wed, 15 Feb 2012 21:28:21 +0000 (22:28 +0100)]
Issue #13014: Fix a possible reference leak in SSLSocket.getpeercert().

12 years ago(Merge 3.2) Issue #13913: Fix test_pep3120 for the UTF-8 codec name
Victor Stinner [Wed, 15 Feb 2012 21:25:51 +0000 (22:25 +0100)]
(Merge 3.2) Issue #13913: Fix test_pep3120 for the UTF-8 codec name

12 years agoIssue #13014: Fix a possible reference leak in SSLSocket.getpeercert().
Antoine Pitrou [Wed, 15 Feb 2012 21:25:27 +0000 (22:25 +0100)]
Issue #13014: Fix a possible reference leak in SSLSocket.getpeercert().

12 years agoIssue #13913: Fix test_pep3120 for the UTF-8 codec name
Victor Stinner [Wed, 15 Feb 2012 21:24:17 +0000 (22:24 +0100)]
Issue #13913: Fix test_pep3120 for the UTF-8 codec name

12 years agoMerge branch '3.2'
Petri Lehtinen [Wed, 15 Feb 2012 20:22:34 +0000 (22:22 +0200)]
Merge branch '3.2'

Issue #13491.

12 years agoIssue #13491: Fix many errors in sqlite3 documentation
Petri Lehtinen [Wed, 15 Feb 2012 20:17:21 +0000 (22:17 +0200)]
Issue #13491: Fix many errors in sqlite3 documentation

Initial patch by Johannes Vogel.

12 years agoIssue #7644: Add tests for the file argument of NNTP.head() and NNTP.body().
Antoine Pitrou [Wed, 15 Feb 2012 17:53:49 +0000 (18:53 +0100)]
Issue #7644: Add tests for the file argument of NNTP.head() and NNTP.body().
Patch by Hynek Schlawack.

12 years agoIssue #7644: Add tests for the file argument of NNTP.head() and NNTP.body().
Antoine Pitrou [Wed, 15 Feb 2012 17:53:18 +0000 (18:53 +0100)]
Issue #7644: Add tests for the file argument of NNTP.head() and NNTP.body().
Patch by Hynek Schlawack.

12 years agoFix for packaging test failure on shared builds (#1326113)
Éric Araujo [Wed, 15 Feb 2012 17:14:50 +0000 (18:14 +0100)]
Fix for packaging test failure on shared builds (#1326113)

12 years agoMerge fix from 3.2
Éric Araujo [Wed, 15 Feb 2012 17:13:00 +0000 (18:13 +0100)]
Merge fix from 3.2

12 years agoFix test failure for shared builds caused by #1326113 fix
Éric Araujo [Wed, 15 Feb 2012 17:12:12 +0000 (18:12 +0100)]
Fix test failure for shared builds caused by #1326113 fix

12 years agoFix parsing of packaging’s build_ext --libraries option (#1326113)
Éric Araujo [Wed, 15 Feb 2012 16:25:25 +0000 (17:25 +0100)]
Fix parsing of packaging’s build_ext --libraries option (#1326113)

12 years agoMerge fixes for #1326113 and #12297 from 3.2
Éric Araujo [Wed, 15 Feb 2012 16:13:26 +0000 (17:13 +0100)]
Merge fixes for #1326113 and #12297 from 3.2

12 years agoImprove doc for atexit.register and unregister (#12297)
Éric Araujo [Wed, 15 Feb 2012 16:07:49 +0000 (17:07 +0100)]
Improve doc for atexit.register and unregister (#12297)

12 years agoFix parsing of build_ext --libraries option (#1326113)
Éric Araujo [Wed, 15 Feb 2012 15:44:37 +0000 (16:44 +0100)]
Fix parsing of build_ext --libraries option (#1326113)

12 years agoMove NEWS entry to correct section.
Antoine Pitrou [Wed, 15 Feb 2012 01:54:54 +0000 (02:54 +0100)]
Move NEWS entry to correct section.

12 years agoIssue #13020: Fix a reference leak when allocating a structsequence object fails.
Antoine Pitrou [Wed, 15 Feb 2012 01:54:33 +0000 (02:54 +0100)]
Issue #13020: Fix a reference leak when allocating a structsequence object fails.
Patch by Suman Saha.

12 years agoFix indentation
Antoine Pitrou [Wed, 15 Feb 2012 01:52:58 +0000 (02:52 +0100)]
Fix indentation

12 years agoIssue #13020: Fix a reference leak when allocating a structsequence object fails.
Antoine Pitrou [Wed, 15 Feb 2012 01:51:43 +0000 (02:51 +0100)]
Issue #13020: Fix a reference leak when allocating a structsequence object fails.
Patch by Suman Saha.

12 years agoIssue #13015: Fix a possible reference leak in defaultdict.__repr__.
Antoine Pitrou [Wed, 15 Feb 2012 01:43:47 +0000 (02:43 +0100)]
Issue #13015: Fix a possible reference leak in defaultdict.__repr__.
Patch by Suman Saha.

12 years agoIssue #13015: Fix a possible reference leak in defaultdict.__repr__.
Antoine Pitrou [Wed, 15 Feb 2012 01:42:46 +0000 (02:42 +0100)]
Issue #13015: Fix a possible reference leak in defaultdict.__repr__.
Patch by Suman Saha.

12 years agoBring importlib in line w/ changes made in my personal bootstrap branch in the sandbox.
Brett Cannon [Tue, 14 Feb 2012 23:38:11 +0000 (18:38 -0500)]
Bring importlib in line w/ changes made in my personal bootstrap branch in the sandbox.

12 years agoIssue #10287: nntplib now queries the server's CAPABILITIES first before sending...
Antoine Pitrou [Tue, 14 Feb 2012 22:30:35 +0000 (23:30 +0100)]
Issue #10287: nntplib now queries the server's CAPABILITIES first before sending MODE READER, and only sends it if not already in READER mode.
Patch by Hynek Schlawack.