Commit Graph

79301 Commits

Author SHA1 Message Date
Antoine Pitrou 5f454a07a0 Issue #1545463: Global variables caught in reference cycles are now garbage-collected at shutdown. 2013-05-06 21:15:57 +02:00
David Malcolm 1df37c657d #17833: merge with 3.3 2013-05-06 14:51:13 -04:00
David Malcolm d08b210164 #17833: fix test_gdb failures seen on PPC64 Linux in test_threads (test.test_gdb.PyBtTests) 2013-05-06 14:47:15 -04:00
R David Murray 5c29bb331a Merge #14187: Add glossary entry for 'function annotations'.
Patch by Chris Rebert.
2013-05-06 12:58:41 -04:00
R David Murray 25cd09115d #14187: Add glossary entry for 'function annotations'.
Patch by Chris Rebert.
2013-05-06 12:58:16 -04:00
Nick Coghlan d62451770a Issue #11816: switch test_peepholer to bytecode_helper 2013-05-07 00:03:00 +10:00
Nick Coghlan b39fd0c9b8 Issue #11816: multiple improvements to the dis module
* get_instructions generator
* ability to redirect output to a file
* Bytecode and Instruction abstractions

Patch by Nick Coghlan, Ryan Kelly and Thomas Kluyver.
2013-05-06 23:59:20 +10:00
Mark Dickinson 9d351332a7 Issue #5845: avoid an exception at startup on OS X if no .editrc file exists. 2013-05-06 15:39:31 +02:00
Richard Oudkerk 60bb107ef3 Correct issue number for c4f92b597074 in Misc/NEWS from #13813 to #13831 2013-05-06 12:24:30 +01:00
Richard Oudkerk f3a0da24f3 Merge 2013-05-06 12:13:50 +01:00
Richard Oudkerk def51ca8ea Issue #17805: Add AsyncResult alias for ApplyResult 2013-05-06 12:10:04 +01:00
Richard Oudkerk 8575783a00 Issue #13813: Embed stringification of remote traceback in local
traceback raised when pool task raises an exception.
2013-05-06 11:38:25 +01:00
Roger Serwy 53683f6f4b #13495: merge with 3.3. 2013-05-05 22:16:03 -05:00
Roger Serwy 9bc7b793ea #13495: Avoid loading the color delegator twice in IDLE. 2013-05-05 22:15:44 -05:00
Raymond Hettinger 77371a5eea merge 2013-05-05 19:54:04 -07:00
Raymond Hettinger 44571daf0e Issue 17862: Improve the signature of itertools grouper() recipe.
Putting *n* after the *iterable* matches the signature of other itertools
and recipes.  Also, it reads better.

Suggested by Ezio Melotti.
2013-05-05 19:53:41 -07:00
Richard Oudkerk 7a3dae056d Issue #15528: Add weakref.finalize to support finalization using
weakref callbacks.

This is 2e446e87ac5b except that collections/__init__.py has been
modified to import proxy from _weakref instead of weakref.  This
eliminates an import cycle which seems to cause a problem on Unix but
not Windows.
2013-05-05 23:05:00 +01:00
Antoine Pitrou 8408cea0cd Issue #17094: Clear stale thread states after fork().
Note that this is a potentially disruptive change since it may
release some system resources which would otherwise remain
perpetually alive (e.g. database connections kept in thread-local
storage).
2013-05-05 23:47:09 +02:00
Richard Oudkerk 39b17c513a Backout 2e446e87ac5b; it breaks the unix buildbots. 2013-05-05 22:12:34 +01:00
Richard Oudkerk f3593026de Issue #15528: Add weakref.finalize to support finalization using
weakref callbacks.
2013-05-05 20:59:04 +01:00
Roger Serwy 2faf9b0869 #17798: merge with 3.3. 2013-05-05 11:35:15 -05:00
Roger Serwy 5b1ab24751 #17798: Allow IDLE to edit new files when specified on command line. 2013-05-05 11:34:21 -05:00
Antoine Pitrou 4adb566ad7 Fix crash caused by 8c1385205a35
(thanks Arfrever for reporting).
2013-05-05 08:14:53 +02:00
Antoine Pitrou fd417cc54b Fix crash caused by 8c1385205a35
(thanks Arfrever for reporting).
2013-05-05 08:12:42 +02:00
Brett Cannon 0470cc9416 merge w/ 3.3 2013-05-04 18:11:30 -04:00
Brett Cannon dea2ec4b1d Fix a test to not use an assertion for something that could be
legitimately false.
2013-05-04 18:11:12 -04:00
Brett Cannon 8772b18bc4 Change a test assertion to a conditional so the test will pass on
Windows.
2013-05-04 17:54:57 -04:00
Brett Cannon 13853a67cf #17115: I hate you MS for not supporting C99. 2013-05-04 17:37:09 -04:00
Brett Cannon 4f9b4343ed merge 2013-05-04 17:29:36 -04:00
Brett Cannon 9c1334ef7d #17115: Remove what appears to be a useless chunk of code which broke
other tests.
2013-05-04 17:27:59 -04:00
Antoine Pitrou 52c5f85cf9 Issue #14173: Avoid crashing when reading a signal handler during interpreter shutdown. 2013-05-04 23:21:09 +02:00
Antoine Pitrou c8c952ce2a Issue #14173: Avoid crashing when reading a signal handler during interpreter shutdown. 2013-05-04 23:16:59 +02:00
Antoine Pitrou df6931dbbc Issue #17408: Avoid using an obsolete instance of the copyreg module when the interpreter is shutdown and then started again. 2013-05-04 20:46:19 +02:00
Antoine Pitrou 957a23b088 Issue #17408: Avoid using an obsolete instance of the copyreg module when the interpreter is shutdown and then started again. 2013-05-04 20:45:02 +02:00
Antoine Pitrou 609a56f788 Elaborate on bytes-like objects. 2013-05-04 20:18:53 +02:00
Antoine Pitrou 5de183a07c Elaborate on bytes-like objects. 2013-05-04 20:18:34 +02:00
Antoine Pitrou 1a6cb30a34 Issue #5845: Enable tab-completion in the interactive interpreter by default, thanks to a new sys.__interactivehook__.
(original patch by Éric Araujo)
2013-05-04 20:08:35 +02:00
Brett Cannon 4c14b5de1c #17115,17116: Have modules initialize the __package__ and __loader__
attributes to None.

The long-term goal is for people to be able to rely on these
attributes existing and checking for None to see if they have been
set. Since import itself sets these attributes when a loader does not
the only instances when the attributes are None are from someone
overloading __import__() and not using a loader or someone creating a
module from scratch.

This patch also unifies module initialization. Before you could have
different attributes with default values depending on how the module
object was created. Now the only way to not get the same default set
of attributes is to circumvent initialization by calling
ModuleType.__new__() directly.
2013-05-04 13:56:58 -04:00
Ezio Melotti 4cfc0b5411 #16518: merge with 3.3. 2013-05-04 18:07:12 +03:00
Ezio Melotti c228e96726 #16518: use "bytes-like object" throughout the docs. 2013-05-04 18:06:34 +03:00
Ezio Melotti 4e59af7abd #7855: merge with 3.3. 2013-05-04 17:47:54 +03:00
Ezio Melotti 28faf03d44 #7855: Add tests for ctypes/winreg for issues found in IronPython. Initial patch by Dino Viehland. 2013-05-04 17:46:23 +03:00
Serhiy Storchaka a8bc7fd559 Null merge (already committed in changeset a3ba5fe9bfd3) 2013-05-04 15:16:16 +03:00
Serhiy Storchaka 59115aa7c9 Issue #16316: mimetypes now recognizes the .xz and .txz (.tar.xz) extensions. 2013-05-04 15:12:55 +03:00
Brett Cannon 95ea11fa31 add trailing newline to file 2013-05-03 10:57:08 -04:00
Brett Cannon 142685337f Move test_imp over to unittest.main() 2013-05-03 10:56:19 -04:00
Brett Cannon 130e48199a Guard more tests in test_imp requiring imp.load_dynamic() to exist. 2013-05-03 10:54:23 -04:00
Brett Cannon 2a9c653f38 #15902: merge w/ 3.3 2013-05-03 10:47:17 -04:00
Brett Cannon 9d0f772c51 Issue #15902: Fix imp.load_module() to accept None as a file when
trying to load an extension module.

While at it, also add a proper unittest.skipIf() guard to another test
involving imp.load_dynamic().
2013-05-03 10:37:08 -04:00
Raymond Hettinger 4072875dcb merge 2013-05-03 02:41:02 -07:00