]> granicus.if.org Git - python/log
python
11 years agoIssue #17914: Add os.cpu_count(). Patch by Yogesh Chaudhari, based on an
Charles-Francois Natali [Mon, 20 May 2013 12:40:46 +0000 (14:40 +0200)]
Issue #17914: Add os.cpu_count(). Patch by Yogesh Chaudhari, based on an
initial patch by Trent Nelson.

11 years ago#14097: merge with 3.3.
Ezio Melotti [Mon, 20 May 2013 05:14:14 +0000 (08:14 +0300)]
#14097: merge with 3.3.

11 years ago#14097: improve the "introduction" page of the tutorial.
Ezio Melotti [Mon, 20 May 2013 05:12:32 +0000 (08:12 +0300)]
#14097: improve the "introduction" page of the tutorial.

11 years agomerge 3.3
Benjamin Peterson [Mon, 20 May 2013 02:39:46 +0000 (19:39 -0700)]
merge 3.3

11 years agoadd recursive repr test
Benjamin Peterson [Mon, 20 May 2013 02:39:38 +0000 (19:39 -0700)]
add recursive repr test

11 years agoGet rid of ugly code duplication for ElementTree.parse when the accelerator
Eli Bendersky [Mon, 20 May 2013 01:47:23 +0000 (18:47 -0700)]
Get rid of ugly code duplication for ElementTree.parse when the accelerator
is imported. Instead, ElementTree.parse can look for a special internal method
defined by the accelerator.

11 years agoAdd some testing to verify which module was imported in ET tests.
Eli Bendersky [Mon, 20 May 2013 00:49:54 +0000 (17:49 -0700)]
Add some testing to verify which module was imported in ET tests.

This is useful when mucking with import_fresh_module to either force or block
importing of the _elementtree accelerator. These tests in place provide an
immediate indication whether the accelerator was actually imported and overrode
the classes it should have.

11 years agoIssue #17989: fix typo in error message
Eli Bendersky [Mon, 20 May 2013 00:00:28 +0000 (17:00 -0700)]
Issue #17989: fix typo in error message

11 years agoIssue #17989: fix typo in error message
Eli Bendersky [Sun, 19 May 2013 23:59:59 +0000 (16:59 -0700)]
Issue #17989: fix typo in error message

11 years agonormalize whitespace
Eli Bendersky [Sun, 19 May 2013 16:27:13 +0000 (09:27 -0700)]
normalize whitespace

11 years agoCleanup even more dead code
Eli Bendersky [Sun, 19 May 2013 16:25:52 +0000 (09:25 -0700)]
Cleanup even more dead code

11 years agoCleanup more old ET library leftovers
Eli Bendersky [Sun, 19 May 2013 16:24:43 +0000 (09:24 -0700)]
Cleanup more old ET library leftovers

11 years agoIssue #17988: remove unused alias for Element and rename the used one
Eli Bendersky [Sun, 19 May 2013 16:20:50 +0000 (09:20 -0700)]
Issue #17988: remove unused alias for Element and rename the used one

Renaming to _Element_Py for clarity and moving it to a more logical location.
_ElementInterface OTOH is unused and is therefore removed.

Close #17988

11 years agoClarify docs too: events can be any sequence (not that the C code supports it)
Eli Bendersky [Sun, 19 May 2013 16:09:24 +0000 (09:09 -0700)]
Clarify docs too: events can be any sequence (not that the C code supports it)

11 years ago_elementtree.XMLParser._setevents should support any sequence, not just tuples
Eli Bendersky [Sun, 19 May 2013 16:01:49 +0000 (09:01 -0700)]
_elementtree.XMLParser._setevents should support any sequence, not just tuples

Also clean up some code around this

11 years agoTry to make test more reliable (saw some sporadic failures on buildbots)
Antoine Pitrou [Sun, 19 May 2013 13:55:59 +0000 (15:55 +0200)]
Try to make test more reliable (saw some sporadic failures on buildbots)

11 years agoTry to make test more reliable (saw some sporadic failures on buildbots)
Antoine Pitrou [Sun, 19 May 2013 13:55:40 +0000 (15:55 +0200)]
Try to make test more reliable (saw some sporadic failures on buildbots)

11 years agoIssue #11995: test_pydoc doesn't import all sys.path modules anymore.
Antoine Pitrou [Sun, 19 May 2013 13:46:37 +0000 (15:46 +0200)]
Issue #11995: test_pydoc doesn't import all sys.path modules anymore.

11 years agoIssue #11995: test_pydoc doesn't import all sys.path modules anymore.
Antoine Pitrou [Sun, 19 May 2013 13:44:54 +0000 (15:44 +0200)]
Issue #11995: test_pydoc doesn't import all sys.path modules anymore.

11 years agoIssue #17812: Fixed quadratic complexity of base64.b32encode().
Serhiy Storchaka [Sun, 19 May 2013 08:49:32 +0000 (11:49 +0300)]
Issue #17812: Fixed quadratic complexity of base64.b32encode().
Optimize base64.b32encode() and base64.b32decode() (speed up to 3x).

11 years agoIssue #17812: Fixed quadratic complexity of base64.b32encode().
Serhiy Storchaka [Sun, 19 May 2013 08:41:15 +0000 (11:41 +0300)]
Issue #17812: Fixed quadratic complexity of base64.b32encode().

11 years agoIssue #17937: Try harder to collect cyclic garbage at shutdown.
Antoine Pitrou [Sat, 18 May 2013 23:11:58 +0000 (01:11 +0200)]
Issue #17937: Try harder to collect cyclic garbage at shutdown.

11 years agoIssue #17901: fix TreeBuilder construction for an explicit element_factory=None
Eli Bendersky [Sat, 18 May 2013 22:47:58 +0000 (15:47 -0700)]
Issue #17901: fix TreeBuilder construction for an explicit element_factory=None

Based on report and patch by Aaron Oakley.

11 years agoIssue #17901: fix TreeBuilder construction for an explicit element_factory=None
Eli Bendersky [Sat, 18 May 2013 22:47:16 +0000 (15:47 -0700)]
Issue #17901: fix TreeBuilder construction for an explicit element_factory=None

Based on report and patch by Aaron Oakley.

11 years agoRe-enabled skipped test.
Vinay Sajip [Sat, 18 May 2013 17:19:54 +0000 (10:19 -0700)]
Re-enabled skipped test.

11 years agoMerge.
Richard Oudkerk [Sat, 18 May 2013 17:13:16 +0000 (18:13 +0100)]
Merge.

11 years agoClose file before reopening to keep Windows happy in test_sax.
Richard Oudkerk [Sat, 18 May 2013 17:11:30 +0000 (18:11 +0100)]
Close file before reopening to keep Windows happy in test_sax.

11 years agoUse PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format.
Richard Oudkerk [Sat, 18 May 2013 16:35:19 +0000 (17:35 +0100)]
Use PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format.

11 years agoIssue #17980: Fix possible abuse of ssl.match_hostname() for denial of service using...
Antoine Pitrou [Sat, 18 May 2013 15:59:12 +0000 (17:59 +0200)]
Issue #17980: Fix possible abuse of ssl.match_hostname() for denial of service using certificates with many wildcards (CVE-2013-2099).

11 years agoIssue #17980: Fix possible abuse of ssl.match_hostname() for denial of service using...
Antoine Pitrou [Sat, 18 May 2013 15:56:42 +0000 (17:56 +0200)]
Issue #17980: Fix possible abuse of ssl.match_hostname() for denial of service using certificates with many wildcards (CVE-2013-2099).

11 years agoIssue #17989: element_setattro returned incorrect error value.
Eli Bendersky [Sat, 18 May 2013 14:53:47 +0000 (07:53 -0700)]
Issue #17989: element_setattro returned incorrect error value.

This caused an exception to be raised later than expected.

11 years agoIssue #17989: element_setattro returned incorrect error value.
Eli Bendersky [Sat, 18 May 2013 14:52:34 +0000 (07:52 -0700)]
Issue #17989: element_setattro returned incorrect error value.

This caused an exception to be raised later than expected.

11 years agoUndo the deprecation of _asdict().
Raymond Hettinger [Sat, 18 May 2013 07:05:20 +0000 (00:05 -0700)]
Undo the deprecation of _asdict().

Backed out changeset c4ca39bece9d

11 years agoDeprecate nametuple._asdict()
Raymond Hettinger [Sat, 18 May 2013 00:14:27 +0000 (17:14 -0700)]
Deprecate nametuple._asdict()

11 years agomerge
Raymond Hettinger [Fri, 17 May 2013 23:43:58 +0000 (16:43 -0700)]
merge

11 years agoUpdate docstring for _asdict() to indicate it is obsolete.
Raymond Hettinger [Fri, 17 May 2013 23:43:14 +0000 (16:43 -0700)]
Update docstring for _asdict() to indicate it is obsolete.
Use the cleaner looking @property style for __dict__.
Move _replace() to be just after make() to indicate that
it is a core method on named tuples.

11 years agorewrite the parsing of field names to be more consistent wrt recursive expansion
Benjamin Peterson [Fri, 17 May 2013 23:22:31 +0000 (18:22 -0500)]
rewrite the parsing of field names to be more consistent wrt recursive expansion

11 years agomerge 3.3
Benjamin Peterson [Fri, 17 May 2013 22:35:28 +0000 (17:35 -0500)]
merge 3.3

11 years agoFileIO.readall(): remove trailing space from an exception message
Victor Stinner [Fri, 17 May 2013 22:38:43 +0000 (00:38 +0200)]
FileIO.readall(): remove trailing space from an exception message

11 years agoIssue #15758: Fix FileIO.readall() so it no longer has O(n**2) complexity.
Richard Oudkerk [Fri, 17 May 2013 22:34:42 +0000 (23:34 +0100)]
Issue #15758: Fix FileIO.readall() so it no longer has O(n**2) complexity.

11 years agoonly recursively expand in the format spec (closes #17644)
Benjamin Peterson [Fri, 17 May 2013 22:34:30 +0000 (17:34 -0500)]
only recursively expand in the format spec (closes #17644)

11 years agoreset __class__, so multiple runs don't fail (closes #17999)
Benjamin Peterson [Fri, 17 May 2013 16:33:26 +0000 (11:33 -0500)]
reset __class__, so multiple runs don't fail (closes #17999)

11 years agomerge
Raymond Hettinger [Fri, 17 May 2013 10:24:54 +0000 (03:24 -0700)]
merge

11 years agoIssue #17563: Fix dict resize performance regression.
Raymond Hettinger [Fri, 17 May 2013 10:01:13 +0000 (03:01 -0700)]
Issue #17563: Fix dict resize performance regression.

11 years agomerge
Raymond Hettinger [Fri, 17 May 2013 09:29:27 +0000 (02:29 -0700)]
merge

11 years agoRemove unnecessary exception handler.
Raymond Hettinger [Fri, 17 May 2013 09:28:33 +0000 (02:28 -0700)]
Remove unnecessary exception handler.

11 years agomerge
Raymond Hettinger [Fri, 17 May 2013 09:24:18 +0000 (02:24 -0700)]
merge

11 years agoIgnore Mac OS X entries for .DS_Store
Raymond Hettinger [Fri, 17 May 2013 09:23:16 +0000 (02:23 -0700)]
Ignore Mac OS X entries for .DS_Store

11 years agoIssue #14596: The struct.Struct() objects now use more compact implementation.
Serhiy Storchaka [Fri, 17 May 2013 07:49:44 +0000 (10:49 +0300)]
Issue #14596: The struct.Struct() objects now use more compact implementation.

11 years agoFix some bugs in Tools/scripts/abitype.py.
Serhiy Storchaka [Fri, 17 May 2013 07:18:40 +0000 (10:18 +0300)]
Fix some bugs in Tools/scripts/abitype.py.

11 years agoFix some bugs in Tools/scripts/abitype.py.
Serhiy Storchaka [Fri, 17 May 2013 07:17:43 +0000 (10:17 +0300)]
Fix some bugs in Tools/scripts/abitype.py.

11 years agomerge 3.3
Benjamin Peterson [Fri, 17 May 2013 00:38:48 +0000 (19:38 -0500)]
merge 3.3

11 years agomove definition to top of block
Benjamin Peterson [Fri, 17 May 2013 00:38:22 +0000 (19:38 -0500)]
move definition to top of block

11 years agoFix compilater warnings on Windows 64-bit
Victor Stinner [Thu, 16 May 2013 22:12:04 +0000 (00:12 +0200)]
Fix compilater warnings on Windows 64-bit

11 years agoFix a compilater warning on Windows 64-bit
Victor Stinner [Thu, 16 May 2013 22:04:56 +0000 (00:04 +0200)]
Fix a compilater warning on Windows 64-bit

11 years agoIssue #17981: Closed socket on error in SysLogHandler.
Vinay Sajip [Thu, 16 May 2013 21:57:02 +0000 (22:57 +0100)]
Issue #17981: Closed socket on error in SysLogHandler.

11 years agoFix a compilater warning on Windows 64-bit
Victor Stinner [Thu, 16 May 2013 21:48:01 +0000 (23:48 +0200)]
Fix a compilater warning on Windows 64-bit

idx variable is used for a tuple indexn so use Py_ssize_t (not int).

11 years agoCloses #17981: Merged fix from 3.3.
Vinay Sajip [Thu, 16 May 2013 22:02:54 +0000 (23:02 +0100)]
Closes #17981: Merged fix from 3.3.

11 years agomake GCC complain about declarations not at the top of blocks
Benjamin Peterson [Thu, 16 May 2013 20:33:00 +0000 (15:33 -0500)]
make GCC complain about declarations not at the top of blocks

11 years agomerge 3.3
Benjamin Peterson [Thu, 16 May 2013 20:30:09 +0000 (15:30 -0500)]
merge 3.3

11 years agoC89 declaration compliance
Benjamin Peterson [Thu, 16 May 2013 20:29:44 +0000 (15:29 -0500)]
C89 declaration compliance

11 years agoIssue #17964: Fix os.sysconf(): the return type of the C sysconf() function
Victor Stinner [Thu, 16 May 2013 20:26:29 +0000 (22:26 +0200)]
Issue #17964: Fix os.sysconf(): the return type of the C sysconf() function
is long, not int.

11 years agofix compilation on Windows
Victor Stinner [Thu, 16 May 2013 20:17:17 +0000 (22:17 +0200)]
fix compilation on Windows

11 years agorather than passing locals to the class body, just execute the class body in the...
Benjamin Peterson [Thu, 16 May 2013 19:37:25 +0000 (14:37 -0500)]
rather than passing locals to the class body, just execute the class body in the proper environment

11 years agoMerge with 3.3
Brian Curtin [Thu, 16 May 2013 17:03:40 +0000 (12:03 -0500)]
Merge with 3.3

11 years agoAdd Nick Sloan for his contribution to #17732
Brian Curtin [Thu, 16 May 2013 16:59:29 +0000 (11:59 -0500)]
Add Nick Sloan for his contribution to #17732

11 years agoIssue #17992: Add timeouts to asyncore and asynchat tests so that they won't accident...
Giampaolo Rodola' [Thu, 16 May 2013 13:21:53 +0000 (15:21 +0200)]
Issue #17992: Add timeouts to asyncore and asynchat tests so that they won't accidentally hang.

11 years agoftplib tests: provide a global socket's TIMEOUT variable and use it everywhere so...
Giampaolo Rodola' [Thu, 16 May 2013 13:12:01 +0000 (15:12 +0200)]
ftplib tests: provide a global socket's TIMEOUT variable and use it everywhere so that failing tests won't accidentally hang

11 years agonull mege 3.3 with fix not applicable here
Benjamin Peterson [Wed, 15 May 2013 21:18:51 +0000 (16:18 -0500)]
null mege 3.3 with fix not applicable here

11 years agocomplain about "global __class__" in a class body (closes #17983)
Benjamin Peterson [Wed, 15 May 2013 21:17:25 +0000 (16:17 -0500)]
complain about "global __class__" in a class body (closes #17983)

11 years agohide the __class__ closure from the class body (#12370)
Benjamin Peterson [Wed, 15 May 2013 20:26:42 +0000 (15:26 -0500)]
hide the __class__ closure from the class body (#12370)

11 years agonull-merge from 3.3
Georg Brandl [Wed, 15 May 2013 17:43:15 +0000 (19:43 +0200)]
null-merge from 3.3

11 years agopost-release update.
Georg Brandl [Wed, 15 May 2013 17:42:39 +0000 (19:42 +0200)]
post-release update.

11 years ago- Fix typos in the multiprocessing module.
doko@ubuntu.com [Wed, 15 May 2013 16:08:03 +0000 (18:08 +0200)]
- Fix typos in the multiprocessing module.

11 years ago- Fix typos in the multiprocessing module.
doko@ubuntu.com [Wed, 15 May 2013 16:06:56 +0000 (18:06 +0200)]
- Fix typos in the multiprocessing module.

11 years ago- Issue #17754: Make ctypes.util.find_library() independent of the locale.
doko@ubuntu.com [Wed, 15 May 2013 16:04:50 +0000 (18:04 +0200)]
- Issue #17754: Make ctypes.util.find_library() independent of the locale.

11 years ago- Issue #17754: Make ctypes.util.find_library() independent of the locale.
doko@ubuntu.com [Wed, 15 May 2013 16:02:13 +0000 (18:02 +0200)]
- Issue #17754: Make ctypes.util.find_library() independent of the locale.

11 years agoMisc/NEWS: Add 3.3.3 section and move entries made after the 3.3.2 release
doko@ubuntu.com [Wed, 15 May 2013 16:00:05 +0000 (18:00 +0200)]
Misc/NEWS: Add 3.3.3 section and move entries made after the 3.3.2 release
to the new section.

11 years agonull merge 3.3 from backport
Benjamin Peterson [Wed, 15 May 2013 03:32:34 +0000 (22:32 -0500)]
null merge 3.3 from backport

11 years agowhen arguments are cells clear the locals slot (backport of #17927)
Benjamin Peterson [Wed, 15 May 2013 03:31:26 +0000 (22:31 -0500)]
when arguments are cells clear the locals slot (backport of #17927)

11 years agoBackout c89febab4648 following private feedback by Guido.
Antoine Pitrou [Tue, 14 May 2013 18:37:52 +0000 (20:37 +0200)]
Backout c89febab4648 following private feedback by Guido.
(Issue #17807: Generators can now be finalized even when they are part of a reference cycle)

11 years ago- Issue #17977: The documentation for the cadefault argument's default value
Barry Warsaw [Tue, 14 May 2013 15:38:38 +0000 (11:38 -0400)]
- Issue #17977: The documentation for the cadefault argument's default value
  in urllib.request.urlopen() is fixed to match the code.

11 years ago- Issue #17977: The documentation for the cadefault argument's default value
Barry Warsaw [Tue, 14 May 2013 15:35:16 +0000 (11:35 -0400)]
- Issue #17977: The documentation for the cadefault argument's default value
  in urllib.request.urlopen() is fixed to match the code.

11 years agomerge 3.3 (#17968)
Benjamin Peterson [Tue, 14 May 2013 00:56:35 +0000 (19:56 -0500)]
merge 3.3 (#17968)

11 years agoprevent double free in cleanup code (#17968)
Benjamin Peterson [Tue, 14 May 2013 00:55:40 +0000 (19:55 -0500)]
prevent double free in cleanup code (#17968)

11 years agoFix ResourceWarnings in test_sax
Antoine Pitrou [Mon, 13 May 2013 20:35:38 +0000 (22:35 +0200)]
Fix ResourceWarnings in test_sax

11 years agoFix ResourceWarnings in test_sax
Antoine Pitrou [Mon, 13 May 2013 20:34:21 +0000 (22:34 +0200)]
Fix ResourceWarnings in test_sax

11 years agoMerge with 3.3
Terry Jan Reedy [Mon, 13 May 2013 20:09:47 +0000 (16:09 -0400)]
Merge with 3.3

11 years agoSilence unclosed open file ResourceWarning.
Terry Jan Reedy [Mon, 13 May 2013 20:07:44 +0000 (16:07 -0400)]
Silence unclosed open file ResourceWarning.

11 years agoComplete 2 to 3 conversion
Terry Jan Reedy [Mon, 13 May 2013 19:44:30 +0000 (15:44 -0400)]
Complete 2 to 3 conversion

11 years agoComplete 2 to 3 conversion
Terry Jan Reedy [Mon, 13 May 2013 19:39:24 +0000 (15:39 -0400)]
Complete 2 to 3 conversion

11 years agoIssue #17968: Fix memory leak in os.listxattr().
Antoine Pitrou [Mon, 13 May 2013 17:48:46 +0000 (19:48 +0200)]
Issue #17968: Fix memory leak in os.listxattr().

11 years agoIssue #17968: Fix memory leak in os.listxattr().
Antoine Pitrou [Mon, 13 May 2013 17:46:29 +0000 (19:46 +0200)]
Issue #17968: Fix memory leak in os.listxattr().

11 years agoremove support GCC PyArg_ParseTuple format patch, last seen in 2006
Benjamin Peterson [Mon, 13 May 2013 04:08:28 +0000 (23:08 -0500)]
remove support GCC PyArg_ParseTuple format patch, last seen in 2006

11 years agomerge 3.3
Benjamin Peterson [Mon, 13 May 2013 00:02:05 +0000 (19:02 -0500)]
merge 3.3

11 years agouse correct format code for exceptions
Benjamin Peterson [Mon, 13 May 2013 00:01:52 +0000 (19:01 -0500)]
use correct format code for exceptions

11 years agowhen an argument is a cell, set the local copy to NULL (see #17927)
Benjamin Peterson [Sun, 12 May 2013 23:16:06 +0000 (18:16 -0500)]
when an argument is a cell, set the local copy to NULL (see #17927)

11 years agomerge with 3.3
Georg Brandl [Sun, 12 May 2013 17:57:26 +0000 (19:57 +0200)]
merge with 3.3

11 years agoAdded tag v3.3.2 for changeset d047928ae3f6
Georg Brandl [Sun, 12 May 2013 17:55:55 +0000 (19:55 +0200)]
Added tag v3.3.2 for changeset d047928ae3f6

11 years agoCloses #17962: Build with OpenSSL 1.0.1e on Windows. v3.3.2
Georg Brandl [Sun, 12 May 2013 17:50:34 +0000 (19:50 +0200)]
Closes #17962: Build with OpenSSL 1.0.1e on Windows.