]>
granicus.if.org Git - python/log
Georg Brandl [Mon, 20 Feb 2012 23:50:13 +0000 (00:50 +0100)]
Forgot the "empty string -> hash == 0" special case for strings.
Georg Brandl [Mon, 20 Feb 2012 23:34:05 +0000 (00:34 +0100)]
Merge more test vs hashing-order fixes from 3.2.
Georg Brandl [Mon, 20 Feb 2012 23:33:36 +0000 (00:33 +0100)]
Merge 3.2: Issue #13703 plus some related test suite fixes.
Georg Brandl [Mon, 20 Feb 2012 23:32:36 +0000 (00:32 +0100)]
Disable an inspect test: it depends on dict ordering which parameter is reported as duplicate.
Antoine Pitrou [Mon, 20 Feb 2012 23:00:06 +0000 (00:00 +0100)]
Delete the iterator, which could accidentally keep a temporary reference to the yielded element.
Antoine Pitrou [Mon, 20 Feb 2012 22:51:50 +0000 (23:51 +0100)]
Merge
Georg Brandl [Mon, 20 Feb 2012 22:52:16 +0000 (23:52 +0100)]
Dummy-merge with 3.1
Georg Brandl [Mon, 20 Feb 2012 22:49:29 +0000 (23:49 +0100)]
Fix typo in conditional.
Antoine Pitrou [Mon, 20 Feb 2012 22:49:07 +0000 (23:49 +0100)]
Make "regrtest -j" "-R"-aware
Georg Brandl [Mon, 20 Feb 2012 22:37:36 +0000 (23:37 +0100)]
Fix obscure failures of datetime-related tests due to the datetime tests failing to restore the system state completely after testing the pure-Python versions.
Georg Brandl [Mon, 20 Feb 2012 22:09:59 +0000 (23:09 +0100)]
Fix typo.
Georg Brandl [Mon, 20 Feb 2012 21:48:06 +0000 (22:48 +0100)]
Fix dbm_gnu test relying on set order.
Georg Brandl [Mon, 20 Feb 2012 21:08:27 +0000 (22:08 +0100)]
Fix use of deprecated assertRegexpMatches method.
Antoine Pitrou [Mon, 20 Feb 2012 21:06:59 +0000 (22:06 +0100)]
Issue #14063: fix test_importlib failure under OS X case-insensitive filesystems
(regression)
Georg Brandl [Mon, 20 Feb 2012 21:06:02 +0000 (22:06 +0100)]
Remove setting hash seed to regrtest's random seed and re-execv()ing: this doesn't preserve Python flags and fails from a temp directory.
Georg Brandl [Mon, 20 Feb 2012 21:48:06 +0000 (22:48 +0100)]
Fix dbm_gnu test relying on set order.
Georg Brandl [Mon, 20 Feb 2012 22:09:59 +0000 (23:09 +0100)]
Fix typo.
Georg Brandl [Mon, 20 Feb 2012 22:49:29 +0000 (23:49 +0100)]
Fix typo in conditional.
Georg Brandl [Mon, 20 Feb 2012 21:06:02 +0000 (22:06 +0100)]
Remove setting hash seed to regrtest's random seed and re-execv()ing: this doesn't preserve Python flags and fails from a temp directory.
Georg Brandl [Mon, 20 Feb 2012 21:03:28 +0000 (22:03 +0100)]
Another test_dis dict order dependency.
Georg Brandl [Mon, 20 Feb 2012 20:43:25 +0000 (21:43 +0100)]
Merge with 3.1.
Georg Brandl [Mon, 20 Feb 2012 20:41:03 +0000 (21:41 +0100)]
Fix test_dis dependency on dict order.
Georg Brandl [Mon, 20 Feb 2012 20:37:22 +0000 (21:37 +0100)]
Fix use of deprecated assert_ method.
Georg Brandl [Mon, 20 Feb 2012 20:36:28 +0000 (21:36 +0100)]
Fix "sys.path modified" warning in test_strlit, by not replacing sys.path itself, only its contents.
Georg Brandl [Mon, 20 Feb 2012 20:34:57 +0000 (21:34 +0100)]
Fix bad inheritance in test_subprocess that led to a number of tests being executed twice.
Georg Brandl [Mon, 20 Feb 2012 20:34:31 +0000 (21:34 +0100)]
Run tests with -R on "make test" and the buildbots.
Georg Brandl [Mon, 20 Feb 2012 20:31:46 +0000 (21:31 +0100)]
Merge from 3.1: Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime)
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.
The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
Benjamin Peterson [Mon, 20 Feb 2012 20:20:37 +0000 (15:20 -0500)]
don't rely on the order of module clearing
Benjamin Peterson [Mon, 20 Feb 2012 20:06:35 +0000 (15:06 -0500)]
put docstrings on functions
Georg Brandl [Mon, 20 Feb 2012 18:54:16 +0000 (19:54 +0100)]
Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime)
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.
The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
Vinay Sajip [Mon, 20 Feb 2012 18:51:00 +0000 (18:51 +0000)]
Merged upstream changes.
Vinay Sajip [Mon, 20 Feb 2012 18:50:33 +0000 (18:50 +0000)]
Merged upstream changes.
Antoine Pitrou [Mon, 20 Feb 2012 18:46:26 +0000 (19:46 +0100)]
Fix use of assertRaises following
c760bd844222 (spotted by Alex Gaynor).
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).
Vinay Sajip [Mon, 20 Feb 2012 18:36:12 +0000 (18:36 +0000)]
Merged documentation update from 3.2.
Vinay Sajip [Mon, 20 Feb 2012 18:35:26 +0000 (18:35 +0000)]
logging: clarified documentation for Handler.handleError.
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.
Benjamin Peterson [Mon, 20 Feb 2012 14:02:57 +0000 (09:02 -0500)]
merge heads
Benjamin Peterson [Mon, 20 Feb 2012 13:48:25 +0000 (08:48 -0500)]
write versionadded
Antoine Pitrou [Mon, 20 Feb 2012 12:52:47 +0000 (13:52 +0100)]
_relax_case -> _make_relax_case
Benjamin Peterson [Mon, 20 Feb 2012 01:36:12 +0000 (20:36 -0500)]
check for NULL to fix segfault
Benjamin Peterson [Mon, 20 Feb 2012 01:02:57 +0000 (20:02 -0500)]
use new generic __dict__ descriptor implementations
Benjamin Peterson [Mon, 20 Feb 2012 00:59:10 +0000 (19:59 -0500)]
add generic implementation of a __dict__ descriptor for C types
Antoine Pitrou [Mon, 20 Feb 2012 00:52:17 +0000 (01:52 +0100)]
Merge
Éric Araujo [Mon, 20 Feb 2012 00:53:09 +0000 (01:53 +0100)]
Merge 3.2
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.
Éric Araujo [Mon, 20 Feb 2012 00:44:55 +0000 (01:44 +0100)]
Add missing “::” markup.
Also wrap two looong lines.
Brett Cannon [Mon, 20 Feb 2012 00:36:44 +0000 (19:36 -0500)]
Fix a failing importlib test under Windows.
Closes issue #14054.
Benjamin Peterson [Mon, 20 Feb 2012 00:16:47 +0000 (19:16 -0500)]
fix test now that staticmethod and classmethod are bigger
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.
Martin v. Löwis [Sun, 19 Feb 2012 19:55:05 +0000 (20:55 +0100)]
Create _attr/_attrNS lazily.
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.
Sandro Tosi [Sun, 19 Feb 2012 18:54:23 +0000 (19:54 +0100)]
Issue #13605: merge with 3.2
Sandro Tosi [Sun, 19 Feb 2012 18:54:00 +0000 (19:54 +0100)]
Issue #13605: use print() in argparse nargs example
Benjamin Peterson [Sun, 19 Feb 2012 15:17:30 +0000 (10:17 -0500)]
initialize __dict__ if needed
Sandro Tosi [Sun, 19 Feb 2012 11:30:47 +0000 (12:30 +0100)]
merge with 3.2
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@
Sandro Tosi [Sun, 19 Feb 2012 11:28:18 +0000 (12:28 +0100)]
merge with 3.2
Sandro Tosi [Sun, 19 Feb 2012 11:28:01 +0000 (12:28 +0100)]
Indent 'File' in memoryview example, so it is correctly highlighted
Benjamin Peterson [Sun, 19 Feb 2012 06:16:13 +0000 (01:16 -0500)]
use defaults
Benjamin Peterson [Sun, 19 Feb 2012 06:14:21 +0000 (01:14 -0500)]
merge 3.2
Benjamin Peterson [Sun, 19 Feb 2012 06:11:56 +0000 (01:11 -0500)]
use Py_CLEAR
Benjamin Peterson [Sun, 19 Feb 2012 06:10:25 +0000 (01:10 -0500)]
allow arbitrary attributes on classmethod and staticmethod (closes #14051)
Jesus Cea [Sun, 19 Feb 2012 02:54:59 +0000 (03:54 +0100)]
MERGE: Test for issue #13500
Jesus Cea [Sun, 19 Feb 2012 02:54:29 +0000 (03:54 +0100)]
Test for issue #13500
Jesus Cea [Sun, 19 Feb 2012 02:52:23 +0000 (03:52 +0100)]
Test for issue #13500
Sandro Tosi [Sat, 18 Feb 2012 15:06:39 +0000 (16:06 +0100)]
merge with 3.2
Sandro Tosi [Sat, 18 Feb 2012 15:05:34 +0000 (16:05 +0100)]
fix error in memoryview example; thanks to kan lianlian from docs@
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.
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.
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.
Terry Jan Reedy [Sat, 18 Feb 2012 00:58:41 +0000 (19:58 -0500)]
Merge with 3.2 closes 14023
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.)
Ezio Melotti [Sat, 18 Feb 2012 00:03:35 +0000 (02:03 +0200)]
#14020: merge with 3.2.
Ezio Melotti [Sat, 18 Feb 2012 00:01:36 +0000 (02:01 +0200)]
#14020: improve HTMLParser documentation.
Petri Lehtinen [Fri, 17 Feb 2012 19:36:52 +0000 (21:36 +0200)]
Merge branch '3.2'
Closes #11689.
Petri Lehtinen [Fri, 17 Feb 2012 19:30:55 +0000 (21:30 +0200)]
Fix a variable scoping error in an sqlite3 test
Closes #11689.
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.
Éric Araujo [Fri, 17 Feb 2012 17:10:11 +0000 (18:10 +0100)]
Branch merge
Éric Araujo [Fri, 17 Feb 2012 16:26:30 +0000 (17:26 +0100)]
Fix code I unwittingly broke in
b0e2d6592a1f (#14038)
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.
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.
Brett Cannon [Fri, 17 Feb 2012 14:37:39 +0000 (09:37 -0500)]
Have importlib.test use argparse instead of some hacked up solution.
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.
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
Antoine Pitrou [Fri, 17 Feb 2012 10:53:10 +0000 (11:53 +0100)]
Fix compilation when SSL_OP_SINGLE_ECDH_USE isn't defined
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.
Brett Cannon [Thu, 16 Feb 2012 23:03:47 +0000 (18:03 -0500)]
Merge
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.
Florent Xicluna [Thu, 16 Feb 2012 22:28:35 +0000 (23:28 +0100)]
fix the _namespace_map cleanup for cElementTree tests.
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)
Petri Lehtinen [Thu, 16 Feb 2012 19:43:41 +0000 (21:43 +0200)]
Merge branch '3.2'
Closes #13995.
Petri Lehtinen [Thu, 16 Feb 2012 19:39:03 +0000 (21:39 +0200)]
sqlite3: Fix documentation errors concerning Cursor.rowcount
Closes #13995.
Charles-François Natali [Thu, 16 Feb 2012 18:54:48 +0000 (19:54 +0100)]
Merge.
Charles-François Natali [Thu, 16 Feb 2012 18:51:45 +0000 (19:51 +0100)]
Issue #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.
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.
É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.
Eli Bendersky [Thu, 16 Feb 2012 17:55:29 +0000 (19:55 +0200)]
make TestAccelerator[Not]Imported for ElementTree more robust
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