]> granicus.if.org Git - python/log
python
11 years ago(3.3->default) Issue #12990: The "Python Launcher" on OSX could not launch python...
Ronald Oussoren [Sat, 6 Jul 2013 11:25:44 +0000 (13:25 +0200)]
(3.3->default) Issue #12990: The "Python Launcher" on OSX could not launch python scripts that have paths that include wide characters.

11 years agoIssue #12990: The "Python Launcher" on OSX could not launch python scripts that have...
Ronald Oussoren [Sat, 6 Jul 2013 11:20:57 +0000 (13:20 +0200)]
Issue #12990: The "Python Launcher" on OSX could not launch python scripts that have paths that include wide characters.

11 years agoIssue #18375: merge with 3.3
Florent Xicluna [Sat, 6 Jul 2013 10:27:50 +0000 (12:27 +0200)]
Issue #18375: merge with 3.3

11 years agoIssue #18375: Assume --randomize when --randseed is used for running the testsuite.
Florent Xicluna [Sat, 6 Jul 2013 10:25:52 +0000 (12:25 +0200)]
Issue #18375: Assume --randomize when --randseed is used for running the testsuite.

11 years ago(3.3->default) Issue #17860: explicitly mention that std* streams are opened in binar...
Ronald Oussoren [Sat, 6 Jul 2013 08:25:04 +0000 (10:25 +0200)]
(3.3->default) Issue #17860: explicitly mention that std* streams are opened in binary mode by default.

The documentation does mention that the streams are opened in text mode
when univeral_newlines is true, but not that that they are opened in
binary mode when that argument is false and that seems to confuse at
least some users.

11 years agoIssue #17860: explicitly mention that std* streams are opened in binary mode by default.
Ronald Oussoren [Sat, 6 Jul 2013 08:23:59 +0000 (10:23 +0200)]
Issue #17860: explicitly mention that std* streams are opened in binary mode by default.

The documentation does mention that the streams are opened in text mode
when univeral_newlines is true, but not that that they are opened in
binary mode when that argument is false and that seems to confuse at
least some users.

11 years agoSpeed-up deque indexing by changing the deque block length to a power of two.
Raymond Hettinger [Sat, 6 Jul 2013 04:05:29 +0000 (18:05 -1000)]
Speed-up deque indexing by changing the deque block length to a power of two.

The division and modulo calculation in deque_item() can be compiled
to fast bitwise operations when the BLOCKLEN is a power of two.

Timing before:

 ~/cpython $ py -m timeit -r7 -s 'from collections import deque' -s 'd=deque(range(10))' 'd[5]'
10000000 loops, best of 7: 0.0627 usec per loop

Timing after:

~/cpython $ py -m timeit -r7 -s 'from collections import deque' -s 'd=deque(range(10))' 'd[5]'
10000000 loops, best of 7: 0.0581 usec per loop

11 years agoIssue #18347: ElementTree's html serializer now preserves the case of closing tags.
Christian Heimes [Thu, 4 Jul 2013 23:40:52 +0000 (01:40 +0200)]
Issue #18347: ElementTree's html serializer now preserves the case of closing tags.

11 years agoIssue #18347: ElementTree's html serializer now preserves the case of closing tags.
Christian Heimes [Thu, 4 Jul 2013 23:39:49 +0000 (01:39 +0200)]
Issue #18347: ElementTree's html serializer now preserves the case of closing tags.

11 years agoIssue #15767: Excise the remaining instances of ModuleNotFoundError
Brett Cannon [Thu, 4 Jul 2013 22:16:15 +0000 (18:16 -0400)]
Issue #15767: Excise the remaining instances of ModuleNotFoundError

11 years agoRemove dead code in test_exceptions.
Brett Cannon [Thu, 4 Jul 2013 22:04:20 +0000 (18:04 -0400)]
Remove dead code in test_exceptions.

11 years agoMove test_import over to unittest.main().
Brett Cannon [Thu, 4 Jul 2013 22:03:57 +0000 (18:03 -0400)]
Move test_import over to unittest.main().

11 years agoIssue #15767: back out 8a0ed9f63c6e, finishing the removal of
Brett Cannon [Thu, 4 Jul 2013 21:51:50 +0000 (17:51 -0400)]
Issue #15767: back out 8a0ed9f63c6e, finishing the removal of
ModuleNotFoundError.

11 years agoIssue #15767: Revert 3a50025f1900 for ModuleNotFoundError
Brett Cannon [Thu, 4 Jul 2013 21:48:16 +0000 (17:48 -0400)]
Issue #15767: Revert 3a50025f1900 for ModuleNotFoundError

11 years agoIssue #15767: Back out 8d28d44f3a9a related to ModuleNotFoundError.
Brett Cannon [Thu, 4 Jul 2013 21:44:08 +0000 (17:44 -0400)]
Issue #15767: Back out 8d28d44f3a9a related to ModuleNotFoundError.

11 years agoIssue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)
Brett Cannon [Thu, 4 Jul 2013 21:43:24 +0000 (17:43 -0400)]
Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)

11 years agoConsolidate tests section.
Antoine Pitrou [Thu, 4 Jul 2013 19:06:12 +0000 (21:06 +0200)]
Consolidate tests section.

11 years agoIssue #11185: Fix test_wait4 under AIX. Patch by Sébastien Sablé.
Antoine Pitrou [Thu, 4 Jul 2013 19:05:30 +0000 (21:05 +0200)]
Issue #11185: Fix test_wait4 under AIX.  Patch by Sébastien Sablé.

11 years agoIssue #11185: Fix test_wait4 under AIX. Patch by Sébastien Sablé.
Antoine Pitrou [Thu, 4 Jul 2013 19:03:10 +0000 (21:03 +0200)]
Issue #11185: Fix test_wait4 under AIX.  Patch by Sébastien Sablé.

11 years ago(Merge 3.3) test_time.test_monotonic(): use a longer sleep to try to make the test...
Victor Stinner [Wed, 3 Jul 2013 21:07:59 +0000 (23:07 +0200)]
(Merge 3.3) test_time.test_monotonic(): use a longer sleep to try to make the test more reliable

11 years agotest_time.test_monotonic(): use a longer sleep to try to make the test more reliable
Victor Stinner [Wed, 3 Jul 2013 21:07:37 +0000 (23:07 +0200)]
test_time.test_monotonic(): use a longer sleep to try to make the test more reliable

11 years ago(Merge 3.3) test_faulthandler: skip test_read_null() on AIX
Victor Stinner [Wed, 3 Jul 2013 20:35:39 +0000 (22:35 +0200)]
(Merge 3.3) test_faulthandler: skip test_read_null() on AIX

AIX maps the first page of memory at address zero as valid, read-only.  Reading
NULL is not a fault on AIX. This is utilized by IBM compiler optimizations.
One speculatively can indirect through a pointer which may be null without
first testing if null and defer the test before using the value.

11 years agotest_faulthandler: skip test_read_null() on AIX
Victor Stinner [Wed, 3 Jul 2013 20:29:42 +0000 (22:29 +0200)]
test_faulthandler: skip test_read_null() on AIX

AIX maps the first page of memory at address zero as valid, read-only.  Reading
NULL is not a fault on AIX. This is utilized by IBM compiler optimizations.
One speculatively can indirect through a pointer which may be null without
first testing if null and defer the test before using the value.

11 years ago#18312: merge from 3.3.
Eric V. Smith [Tue, 2 Jul 2013 13:07:53 +0000 (09:07 -0400)]
#18312: merge from 3.3.

11 years agoCloses #18312: 'make distclean' no longer deletes files in dot-directories.
Eric V. Smith [Tue, 2 Jul 2013 13:06:54 +0000 (09:06 -0400)]
Closes #18312: 'make distclean' no longer deletes files in dot-directories.

11 years agoIssue #17261: Ensure multiprocessing's proxies use proper address.
Richard Oudkerk [Tue, 2 Jul 2013 12:38:58 +0000 (13:38 +0100)]
Issue #17261: Ensure multiprocessing's proxies use proper address.

11 years agoIssue #17261: Ensure multiprocessing's proxies use proper address.
Richard Oudkerk [Tue, 2 Jul 2013 12:37:43 +0000 (13:37 +0100)]
Issue #17261: Ensure multiprocessing's proxies use proper address.

11 years agoIssue #14206: Clarify docs for Queue.join_cancel_thread().
Richard Oudkerk [Tue, 2 Jul 2013 12:01:31 +0000 (13:01 +0100)]
Issue #14206: Clarify docs for Queue.join_cancel_thread().

11 years agoIssue #14206: Clarify docs for Queue.join_cancel_thread().
Richard Oudkerk [Tue, 2 Jul 2013 11:59:55 +0000 (12:59 +0100)]
Issue #14206: Clarify docs for Queue.join_cancel_thread().

11 years agoIssue #17273: Clarify that pool methods can only be used by parent process.
Richard Oudkerk [Tue, 2 Jul 2013 11:41:00 +0000 (12:41 +0100)]
Issue #17273: Clarify that pool methods can only be used by parent process.

11 years agoIssue #17273: Clarify that pool methods can only be used by parent process.
Richard Oudkerk [Tue, 2 Jul 2013 11:32:00 +0000 (12:32 +0100)]
Issue #17273: Clarify that pool methods can only be used by parent process.

11 years ago(Merge 3.3) Issue #18343: faulthandler.register() now keeps the previous signal
Victor Stinner [Mon, 1 Jul 2013 22:17:14 +0000 (00:17 +0200)]
(Merge 3.3) Issue #18343: faulthandler.register() now keeps the previous signal
handler when the function is called twice, so faulthandler.unregister()
restores correctly the original signal handler.

11 years agoIssue #18343: faulthandler.register() now keeps the previous signal handler
Victor Stinner [Mon, 1 Jul 2013 22:14:56 +0000 (00:14 +0200)]
Issue #18343: faulthandler.register() now keeps the previous signal handler
when the function is called twice, so faulthandler.unregister() restores
correctly the original signal handler.

11 years agoIssue #18328: Reorder ops in PyThreadState_Delete*() functions. Now the
Christian Heimes [Mon, 1 Jul 2013 21:43:09 +0000 (23:43 +0200)]
Issue #18328: Reorder ops in PyThreadState_Delete*() functions. Now the
tstate is first removed from TLS and then deallocated.
CID 1019639 (#1 of 1): Use after free (USE_AFTER_FREE)
 use_after_free: Using freed pointer tstate.

11 years agoIssue #18328: Reorder ops in PyThreadState_Delete*() functions. Now the
Christian Heimes [Mon, 1 Jul 2013 21:42:28 +0000 (23:42 +0200)]
Issue #18328: Reorder ops in PyThreadState_Delete*() functions. Now the
tstate is first removed from TLS and then deallocated.
CID 1019639 (#1 of 1): Use after free (USE_AFTER_FREE)
 use_after_free: Using freed pointer tstate.

11 years agoIssue #18339: use with self.assertRaises() to make test case more readable
Christian Heimes [Mon, 1 Jul 2013 21:00:22 +0000 (23:00 +0200)]
Issue #18339: use with self.assertRaises() to make test case more readable

11 years agoIssue #18339: use with self.assertRaises() to make test case more readable
Christian Heimes [Mon, 1 Jul 2013 21:00:13 +0000 (23:00 +0200)]
Issue #18339: use with self.assertRaises() to make test case more readable

11 years agoIssue #17097: Merge.
Richard Oudkerk [Mon, 1 Jul 2013 18:10:39 +0000 (19:10 +0100)]
Issue #17097: Merge.

11 years agoIssue #17097: Make multiprocessing ignore EINTR.
Richard Oudkerk [Mon, 1 Jul 2013 17:59:26 +0000 (18:59 +0100)]
Issue #17097: Make multiprocessing ignore EINTR.

11 years agoMerge with current default
Łukasz Langa [Mon, 1 Jul 2013 14:03:17 +0000 (16:03 +0200)]
Merge with current default

11 years agoIssue #18244: Adopt C3-based linearization in functools.singledispatch for improved...
Łukasz Langa [Mon, 1 Jul 2013 14:00:38 +0000 (16:00 +0200)]
Issue #18244: Adopt C3-based linearization in functools.singledispatch for improved ABC support

11 years agoSingular form just like the other error message.
Christian Heimes [Mon, 1 Jul 2013 13:23:48 +0000 (15:23 +0200)]
Singular form just like the other error message.

11 years agoSingular form just like the other error message.
Christian Heimes [Mon, 1 Jul 2013 13:23:39 +0000 (15:23 +0200)]
Singular form just like the other error message.

11 years agoIssue #18339: Negative ints keys in unpickler.memo dict no longer cause a
Christian Heimes [Mon, 1 Jul 2013 13:18:49 +0000 (15:18 +0200)]
Issue #18339: Negative ints keys in unpickler.memo dict no longer cause a
segfault inside the _pickle C extension.

11 years agoIssue #18339: Negative ints keys in unpickler.memo dict no longer cause a
Christian Heimes [Mon, 1 Jul 2013 13:17:45 +0000 (15:17 +0200)]
Issue #18339: Negative ints keys in unpickler.memo dict no longer cause a
segfault inside the _pickle C extension.

11 years agoIssue 18240: The HMAC module is no longer restricted to bytes and accepts
Christian Heimes [Mon, 1 Jul 2013 11:08:42 +0000 (13:08 +0200)]
Issue 18240: The HMAC module is no longer restricted to bytes and accepts
any bytes-like object, e.g. memoryview. Original patch by Jonas Borgström.

11 years ago(merge) Issue #7136: In the Idle File menu, "New Window" is renamed "New File".
Terry Jan Reedy [Mon, 1 Jul 2013 04:52:18 +0000 (00:52 -0400)]
(merge) Issue #7136: In the Idle File menu, "New Window" is renamed "New File".
Patch by Tal Einat, Roget Serwy, and Todd Rovito.

11 years agoIssue #7136: In the Idle File menu, "New Window" is renamed "New File".
Terry Jan Reedy [Mon, 1 Jul 2013 04:42:52 +0000 (00:42 -0400)]
Issue #7136: In the Idle File menu, "New Window" is renamed "New File".
Patch by Tal Einat, Roget Serwy, and Todd Rovito.

11 years agoMerge with 3.3
Terry Jan Reedy [Sun, 30 Jun 2013 22:37:51 +0000 (18:37 -0400)]
Merge with 3.3

11 years agoIssue #18189: add test_delegator for Idle Delegator class.
Terry Jan Reedy [Sun, 30 Jun 2013 22:37:05 +0000 (18:37 -0400)]
Issue #18189: add test_delegator for Idle Delegator class.
Also change private dict used as a set to a set.

11 years agoIssue #18224: Updated test.
Vinay Sajip [Sun, 30 Jun 2013 21:11:46 +0000 (22:11 +0100)]
Issue #18224: Updated test.

11 years agoIssue #18224: Updated test.
Vinay Sajip [Sun, 30 Jun 2013 21:11:10 +0000 (22:11 +0100)]
Issue #18224: Updated test.

11 years agoCloses #18224: Removed pydoc script from created venv, as it causes problems on Windo...
Vinay Sajip [Sun, 30 Jun 2013 21:08:27 +0000 (22:08 +0100)]
Closes #18224: Removed pydoc script from created venv, as it causes problems on Windows and adds no value over and above python -m pydoc ...

11 years agoIssue #18224: Removed pydoc script from created venv, as it causes problems on Window...
Vinay Sajip [Sun, 30 Jun 2013 21:06:52 +0000 (22:06 +0100)]
Issue #18224: Removed pydoc script from created venv, as it causes problems on Windows and adds no value over and above python -m pydoc ...

11 years agoMerge with 3.3
Terry Jan Reedy [Sun, 30 Jun 2013 20:52:40 +0000 (16:52 -0400)]
Merge with 3.3

11 years agoIssue 18189: remove unused methods in idlelib.Delegator.Delegator.
Terry Jan Reedy [Sun, 30 Jun 2013 20:52:19 +0000 (16:52 -0400)]
Issue 18189: remove unused methods in idlelib.Delegator.Delegator.
Idle code already uses x.delegate instead of x.getdelegate().
The printed report must have been for testing.

11 years agoNull merge #18038: Use non-deprecated assert names in tests.
R David Murray [Sun, 30 Jun 2013 15:50:53 +0000 (11:50 -0400)]
Null merge #18038: Use non-deprecated assert names in tests.

Brett already fixed this in 3.4 in 4f7c25ab2ed2.

11 years ago#18038: Use non-deprecated assert names in tests.
R David Murray [Sun, 30 Jun 2013 15:46:32 +0000 (11:46 -0400)]
#18038: Use non-deprecated assert names in tests.

11 years agoMerge #18155: Regex-escape delimiter, in case it is a regex special char.
R David Murray [Sat, 29 Jun 2013 22:42:24 +0000 (18:42 -0400)]
Merge #18155: Regex-escape delimiter, in case it is a regex special char.

11 years ago#18155: Regex-escape delimiter, in case it is a regex special char.
R David Murray [Sat, 29 Jun 2013 22:40:53 +0000 (18:40 -0400)]
#18155: Regex-escape delimiter, in case it is a regex special char.

Patch by Vajrasky Kok, with slight modification to the tests by me.

11 years agoMerge with 3.3
Terry Jan Reedy [Sat, 29 Jun 2013 22:22:25 +0000 (18:22 -0400)]
Merge with 3.3

11 years agoIssue #18103: Update README.txt and test_idle to describe and run gui tests.
Terry Jan Reedy [Sat, 29 Jun 2013 22:22:02 +0000 (18:22 -0400)]
Issue #18103: Update README.txt and test_idle to describe and run gui tests.

11 years agoFix segfault in pyexpat.c caused by 84375
Christian Heimes [Sat, 29 Jun 2013 19:49:27 +0000 (21:49 +0200)]
Fix segfault in pyexpat.c caused by 84375
u can be NULL, use XDECREF

11 years agoFix resource leak in pickle module
Christian Heimes [Sat, 29 Jun 2013 19:37:34 +0000 (21:37 +0200)]
Fix resource leak in pickle module
CID 983309 (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable unicode_str going out of scope leaks the storage it points to.

11 years agoFix ref leak in error case of unicode find, count, formatlong
Christian Heimes [Sat, 29 Jun 2013 19:33:36 +0000 (21:33 +0200)]
Fix ref leak in error case of unicode find, count, formatlong
CID 983315: Resource leak (RESOURCE_LEAK)
CID 983316: Resource leak (RESOURCE_LEAK)
CID 983317: Resource leak (RESOURCE_LEAK)

11 years agoFix ref leak in error case of unicode index
Christian Heimes [Sat, 29 Jun 2013 19:21:37 +0000 (21:21 +0200)]
Fix ref leak in error case of unicode index
CID 983319 (#1 of 2): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable substring going out of scope leaks the storage it points to.

11 years agoFix ref leak in error case of unicode rindex and rfind
Christian Heimes [Sat, 29 Jun 2013 19:17:34 +0000 (21:17 +0200)]
Fix ref leak in error case of unicode rindex and rfind
CID 983320: Resource leak (RESOURCE_LEAK)
CID 983321: Resource leak (RESOURCE_LEAK)
leaked_storage: Variable substring going out of scope leaks the storage it points to.

11 years agoFix resource leak in parser, free node ptr
Christian Heimes [Sat, 29 Jun 2013 19:03:51 +0000 (21:03 +0200)]
Fix resource leak in parser, free node ptr
CID 1028068 (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable n going out of scope leaks the storage it points to.

11 years agoFix NULL ptr dereferencing in local_timezone(). nameo can be NULL
Christian Heimes [Sat, 29 Jun 2013 18:52:33 +0000 (20:52 +0200)]
Fix NULL ptr dereferencing in local_timezone(). nameo can be NULL
CID 1040362 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)
var_deref_op: Dereferencing null pointer _py_decref_tmp.

11 years agoFix memory leak in pyexpat PyUnknownEncodingHandler
Christian Heimes [Sat, 29 Jun 2013 18:43:13 +0000 (20:43 +0200)]
Fix memory leak in pyexpat PyUnknownEncodingHandler
CID 1040367 (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable u going out of scope leaks the storage it points to.

11 years agoFix memory leak in endswith
Christian Heimes [Sat, 29 Jun 2013 18:41:06 +0000 (20:41 +0200)]
Fix memory leak in endswith
CID 1040368 (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable substring going out of scope leaks the storage it points to.

11 years agoMerge with 3.3
Terry Jan Reedy [Sat, 29 Jun 2013 17:16:17 +0000 (13:16 -0400)]
Merge with 3.3

11 years agoIssue #18237: Fix assertRaisesRegexp error caought by Jeff Tratner.
Terry Jan Reedy [Sat, 29 Jun 2013 17:15:43 +0000 (13:15 -0400)]
Issue #18237: Fix assertRaisesRegexp error caought by Jeff Tratner.

11 years agoIssue #18322: fix some test_stat nits.
Antoine Pitrou [Sat, 29 Jun 2013 10:58:57 +0000 (12:58 +0200)]
Issue #18322: fix some test_stat nits.

11 years agoMerge with 3.3
Terry Jan Reedy [Sat, 29 Jun 2013 03:52:05 +0000 (23:52 -0400)]
Merge with 3.3

11 years agoIssue *18081, #18242: Change Idle warnings capture in PyShell and run to stop
Terry Jan Reedy [Sat, 29 Jun 2013 03:50:12 +0000 (23:50 -0400)]
Issue *18081, #18242: Change Idle warnings capture in PyShell and run to stop
replacing warnings.formatwarnings and to reverse replacement of
warnings.showwarnings when import is complete and when main function exits.
Add test_warning.py. Vinay Sajip provided capture_warnings function.

11 years agoIssue #18081: Back out temporary changeset, 2a9e1eb3719c, to merge new patch.
Terry Jan Reedy [Sat, 29 Jun 2013 03:47:40 +0000 (23:47 -0400)]
Issue #18081: Back out temporary changeset, 2a9e1eb3719c, to merge new patch.
If buildbots run before next push, test_logging will (temporarily) fail.

11 years agoAdded rationale for defaulting to 1 in the functional API.
Ethan Furman [Sat, 29 Jun 2013 02:37:17 +0000 (19:37 -0700)]
Added rationale for defaulting to 1 in the functional API.

11 years agoMerge with 3.3
Terry Jan Reedy [Fri, 28 Jun 2013 22:59:52 +0000 (18:59 -0400)]
Merge with 3.3

11 years agoIssue #18315: Improve fileinput docs by adding 'bufsize' where missing and
Terry Jan Reedy [Fri, 28 Jun 2013 22:59:28 +0000 (18:59 -0400)]
Issue #18315: Improve fileinput docs by adding 'bufsize' where missing and
replacing redundant signature in input() docstring with one-line summary.
Original patch by Terrel Shumway.

11 years agoAdded example to enum docs show access to name and value attributes of enum members.
Ethan Furman [Fri, 28 Jun 2013 21:02:34 +0000 (14:02 -0700)]
Added example to enum docs show access to name and value attributes of enum members.

11 years agoMerge #14360: Add news item.
R David Murray [Fri, 28 Jun 2013 19:09:10 +0000 (15:09 -0400)]
Merge #14360: Add news item.

11 years ago#14360: Add news item.
R David Murray [Fri, 28 Jun 2013 19:08:03 +0000 (15:08 -0400)]
#14360: Add news item.

11 years agoImprove imap error message in unusual failure mode.
R David Murray [Fri, 28 Jun 2013 18:52:57 +0000 (14:52 -0400)]
Improve imap error message in unusual failure mode.

We ran into this during the sprits at PyCon and this patch has been
sitting on my disk ever since.  This just adds some information to the
error message that we found useful during debugging.  There's no good
way to add a test, since the message only got generated via code
that we had modified for debugging purposes.

11 years ago#18111: Add What's New entry for max/min default.
R David Murray [Fri, 28 Jun 2013 17:31:19 +0000 (13:31 -0400)]
#18111: Add What's New entry for max/min default.

11 years agoIssue #17914: Use os.cpu_count() instead of multiprocessing.cpu_count() where
Charles-François Natali [Fri, 28 Jun 2013 17:25:45 +0000 (19:25 +0200)]
Issue #17914: Use os.cpu_count() instead of multiprocessing.cpu_count() where
applicable.

11 years agoMerge #14360: make encoders.encode_quopri work.
R David Murray [Thu, 27 Jun 2013 22:38:36 +0000 (18:38 -0400)]
Merge #14360: make encoders.encode_quopri work.

11 years ago#14360: make encoders.encode_quopri work.
R David Murray [Thu, 27 Jun 2013 22:37:00 +0000 (18:37 -0400)]
#14360: make encoders.encode_quopri work.

There were no tests for the encoders module.  encode_base64 worked
because it is the default and so got tested implicitly elsewhere, and
we use encode_7or8bit internally, so that worked, too.  I previously
fixed encode_noop, so this fix means that everythign in the encoders
module now works, hopefully correctly.  Also added an explicit test
for encode_base64.

11 years agoIssue #13483: Use VirtualAlloc in obmalloc on Windows.
Martin v. Löwis [Thu, 27 Jun 2013 10:23:29 +0000 (12:23 +0200)]
Issue #13483: Use VirtualAlloc in obmalloc on Windows.

11 years agoMerge #18311: fix typo.
R David Murray [Wed, 26 Jun 2013 19:11:32 +0000 (15:11 -0400)]
Merge #18311: fix typo.

11 years ago#18311: fix typo.
R David Murray [Wed, 26 Jun 2013 19:11:12 +0000 (15:11 -0400)]
#18311: fix typo.

11 years ago#11454: Reduce email module load time, improve surrogate check efficiency.
R David Murray [Wed, 26 Jun 2013 16:06:21 +0000 (12:06 -0400)]
#11454: Reduce email module load time, improve surrogate check efficiency.

The new _has_surrogates code was suggested by Serhiy Storchaka.  See
the issue for timings, but it is far faster than any other alternative,
and also removes the load time that we previously incurred from compiling
the complex regex this replaces.

11 years agoFix os.confstr(): the result type of the C function is size_t, not int
Victor Stinner [Tue, 25 Jun 2013 21:13:47 +0000 (23:13 +0200)]
Fix os.confstr(): the result type of the C function is size_t, not int

11 years agoFix time.mktime() and datetime.datetime.timestamp() on AIX
Victor Stinner [Tue, 25 Jun 2013 20:54:35 +0000 (22:54 +0200)]
Fix time.mktime() and datetime.datetime.timestamp() on AIX

On AIX, the C function mktime() alwaysd sets tm_wday, even on error. So tm_wday
cannot be used as a sentinel to detect an error, we can only check if the
result is (time_t)-1.

11 years agotest_gdb.py: ignore also "warning: Source file is more recent than executable." pattern
Victor Stinner [Tue, 25 Jun 2013 19:54:32 +0000 (21:54 +0200)]
test_gdb.py: ignore also "warning: Source file is more recent than executable." pattern

11 years agoIssue #17206: Fix test_cmd_line and test_faulthandler for my previous change
Victor Stinner [Tue, 25 Jun 2013 19:54:17 +0000 (21:54 +0200)]
Issue #17206: Fix test_cmd_line and test_faulthandler for my previous change
(test.regrtest and test.script_helper enable faulthandler module in
subprocesses).

11 years agoIssue #17206: test.regrtest and test.script_helper enable faulthandler module
Victor Stinner [Tue, 25 Jun 2013 19:24:36 +0000 (21:24 +0200)]
Issue #17206: test.regrtest and test.script_helper enable faulthandler module
in subprocesses.

11 years ago#11390: fix test failures due to readline and windows lineneds.
R David Murray [Tue, 25 Jun 2013 12:11:22 +0000 (08:11 -0400)]
#11390: fix test failures due to readline and windows lineneds.

11 years agoIssue 18111: Add a default argument to min() and max()
Raymond Hettinger [Tue, 25 Jun 2013 05:43:02 +0000 (22:43 -0700)]
Issue 18111: Add a default argument to min() and max()

11 years ago(Merge 3.3) Fix time.strftime("%Y") on AIX: raise a ValueError for year > 9999
Victor Stinner [Tue, 25 Jun 2013 00:34:13 +0000 (02:34 +0200)]
(Merge 3.3) Fix time.strftime("%Y") on AIX: raise a ValueError for year > 9999

time.strtime("%Y") returned "2345" when formatting year 12345.