Commit Graph

8303 Commits

Author SHA1 Message Date
Tim Golden 9b3fb0c6a0 Backed out changeset dafca4714298 2012-11-06 15:33:30 +00:00
Tim Golden 8f323d9aca issue9584: Add {} list expansion to glob. Original patch by Mathieu Bridon 2012-11-06 13:50:42 +00:00
Andrew Svetlov 90a654b1dd Issue #15641: Clean up deprecated classes from importlib
Patch by Taras Lyapun.
2012-11-05 09:34:46 +02:00
Nadeem Vawda ec8c8ae7ae Issue #16350: Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
Patch by Serhiy Storchaka.
2012-11-05 00:40:00 +01:00
Nadeem Vawda 519f43844b Issue #16350: Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
Patch by Serhiy Storchaka.
2012-11-05 00:38:48 +01:00
Nadeem Vawda 39079946a2 Issue #16350: Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
Patch by Serhiy Storchaka.
2012-11-05 00:37:42 +01:00
Ezio Melotti 6c5f5210be #5057: the peepholer no longer optimizes subscription on unicode literals (e.g. u"foo"[0]) in order to produce compatible pyc files between narrow and wide builds. 2012-11-05 00:06:32 +02:00
Ezio Melotti cfa9636404 #8271: merge with 3.3. 2012-11-04 23:23:09 +02:00
Ezio Melotti f7ed5d111b #8271: the utf-8 decoder now outputs the correct number of U+FFFD characters when used with the "replace" error handler on invalid utf-8 sequences. Patch by Serhiy Storchaka, tests by Ezio Melotti. 2012-11-04 23:21:38 +02:00
Nick Coghlan 3bb516bae2 Merge from 3.3 2012-11-05 00:56:02 +10:00
Nick Coghlan 55b5d5c919 Properly credit patch 2012-11-05 00:55:46 +10:00
Nick Coghlan e69bfc3fb6 Issue #5765: Merge from 3.3 2012-11-04 23:53:15 +10:00
Nick Coghlan aab9c2b2ea Issue #5765: Apply a hard recursion limit in the compiler
Previously, excessive nesting in expressions would blow the
stack and segfault the interpreter. Now, a hard limit based
on the configured recursion limit and a hardcoded scaling
factor is applied.
2012-11-04 23:14:34 +10:00
Mark Dickinson c992fafddc Issue #16402: Merge fix from 3.3 2012-11-04 11:47:47 +00:00
Mark Dickinson 1321edaa55 Issue #16402: Merge fix from 3.2 2012-11-04 11:47:05 +00:00
Mark Dickinson 8cd1c7681d Issue #16402: In range slicing, fix shadowing of exceptions from __index__ method. 2012-11-04 11:46:17 +00:00
Éric Araujo 95b4ec8ee3 Branch merge 2012-11-03 17:09:37 -04:00
Éric Araujo a113e018fc Branch merge 2012-11-03 17:09:22 -04:00
Éric Araujo 8c997fa8bf Merge 3.3 2012-11-03 17:07:40 -04:00
Éric Araujo 8f423c9359 Add examples for opener argument of open (#13424).
Patch by Guillaume Pratte.
2012-11-03 17:06:52 -04:00
Ezio Melotti 1e58ae44df #16336: merge with 3.3. 2012-11-03 23:05:18 +02:00
Ezio Melotti a0b5c46fa2 #16336: merge with 3.2. 2012-11-03 23:04:41 +02:00
Ezio Melotti 540da76115 #16336: fix input checking in the surrogatepass error handler. Patch by Serhiy Storchaka. 2012-11-03 23:03:39 +02:00
Ezio Melotti 51f61b93db Merge typo fixes (and the fix for #8401 that I wrongly merged) with 3.3. 2012-11-03 21:36:22 +02:00
Ezio Melotti 0167edf803 Merge typo fixes with 3.2. 2012-11-03 21:32:55 +02:00
Ezio Melotti 8af179e744 Fix a couple typos in Misc/NEWS. 2012-11-03 21:30:32 +02:00
Ezio Melotti 212843b29f #8401: merge with 3.3. 2012-11-03 21:24:47 +02:00
Ezio Melotti 7376801f61 #8401: merge with 3.2. 2012-11-03 21:22:41 +02:00
Ezio Melotti c64bcbec4b #8401: assigning an int to a bytearray slice (e.g. b[3:4] = 5) now raises an error. 2012-11-03 21:19:06 +02:00
Ezio Melotti 4bf474a803 #12759: merge with 3.3. 2012-11-03 20:34:16 +02:00
Ezio Melotti 68600aff3a #12759: merge with 3.2. 2012-11-03 20:33:38 +02:00
Ezio Melotti 0941d9fc64 #12759: sre_parse now raises a proper error when the name of the group is missing. Initial patch by Serhiy Storchaka. 2012-11-03 20:33:08 +02:00
Ezio Melotti 4e0f36b156 #16152: merge with 3.3. 2012-11-03 17:51:25 +02:00
Ezio Melotti fafa8b7797 #16152: merge with 3.2. 2012-11-03 17:46:51 +02:00
Ezio Melotti 2cc3b4ba9f #16152: fix tokenize to ignore whitespace at the end of the code when no newline is found. Patch by Ned Batchelder. 2012-11-03 17:38:43 +02:00
Andrew Svetlov 76bcff27b2 Issue #7317: Display full tracebacks when an error occurs asynchronously.
Patch by Alon Horev with update by Alexey Kachayev.
2012-11-03 15:56:05 +02:00
Andrew Svetlov 6b973747f3 Issue #16284: Prevent keeping unnecessary references to worker functions in concurrent.futures ThreadPoolExecutor. 2012-11-03 15:36:01 +02:00
Andrew Svetlov 69032c81aa Issue #16309: Make PYTHONPATH= behavior the same as if PYTHONPATH not set at all.
Thanks to Armin Rigo and Alexey Kachayev.
2012-11-03 13:52:58 +02:00
Andrew Svetlov d98ee9781b Merge issue #1207589: Add Cut/Copy/Paste items to IDLE right click Context Menu
Patch by Todd Rovito.
2012-11-01 22:44:45 +02:00
Andrew Svetlov e2af509829 Merge issue #1207589: Add Cut/Copy/Paste items to IDLE right click Context Menu
Patch by Todd Rovito.
2012-11-01 22:44:06 +02:00
Andrew Svetlov d183767ca4 Issue #1207589: Add Cut/Copy/Paste items to IDLE right click Context Menu
Patch by Todd Rovito.
2012-11-01 22:41:19 +02:00
Antoine Pitrou 787fbe9d6b Issue #16230: Fix a crash in select.select() when one the lists changes size while iterated on.
Patch by Serhiy Storchaka.
2012-11-01 20:16:07 +01:00
Antoine Pitrou 0168d3d9b1 Issue #16230: Fix a crash in select.select() when one the lists changes size while iterated on.
Patch by Serhiy Storchaka.
2012-11-01 20:15:23 +01:00
Antoine Pitrou e4ad37e50e Issue #16230: Fix a crash in select.select() when one the lists changes size while iterated on.
Patch by Serhiy Storchaka.
2012-11-01 20:13:54 +01:00
Antoine Pitrou 53d36b6912 Issue #16228: Fix a crash in the json module where a list changes size while it is being encoded.
Patch by Serhiy Storchaka.
2012-11-01 20:03:30 +01:00
Antoine Pitrou 5ebe65f8cb Issue #16228: Fix a crash in the json module where a list changes size while it is being encoded.
Patch by Serhiy Storchaka.
2012-11-01 19:59:21 +01:00
Antoine Pitrou 9f69e79c45 Issue #16228: Fix a crash in the json module where a list changes size while it is being encoded.
Patch by Serhiy Storchaka.
2012-11-01 19:52:06 +01:00
Benjamin Peterson d9c8702c0f point errors related to nonlocals and globals to the statement declaring them (closes #10189) 2012-10-31 20:26:20 -04:00
Benjamin Peterson 9b80c67589 merge 3.3 2012-10-31 14:16:22 -04:00
Benjamin Peterson 67f7a5ad79 merge 3.2 2012-10-31 14:16:17 -04:00
Benjamin Peterson 37d2c99b22 fix spelling 2012-10-31 14:16:09 -04:00
Benjamin Peterson 7503e08588 merge 3.3 (#16345) 2012-10-31 14:10:04 -04:00
Benjamin Peterson d97eb0d338 merge 3.2 (#16345) 2012-10-31 14:09:11 -04:00
Benjamin Peterson 275c848736 merge heads 2012-10-31 14:06:07 -04:00
Benjamin Peterson d1f2cb37a2 only fast-path fromkeys() when the constructor returns a empty dict (closes #16345) 2012-10-31 14:05:55 -04:00
Jesus Cea 1a2b945ddb MERGE: Closes #16369: Global PyTypeObjects not initialized with PyType_Ready(...). DOCUMENT IT! 2012-10-31 17:02:25 +01:00
Jesus Cea 08d8434526 MERGE: Closes #16369: Global PyTypeObjects not initialized with PyType_Ready(...). DOCUMENT IT! 2012-10-31 17:02:03 +01:00
Jesus Cea 64085e3064 Closes #16369: Global PyTypeObjects not initialized with PyType_Ready(...). DOCUMENT IT! 2012-10-31 17:00:59 +01:00
Benjamin Peterson 3cb90241fc merge 3.3 2012-10-31 00:04:42 -04:00
Benjamin Peterson 2c05a2e01b do safety checks on __qualname__ assignment 2012-10-31 00:01:15 -04:00
Benjamin Peterson 8afa7fa510 don't shadow the __qualname__ descriptor with __qualname__ in the class's __dict__ (closes #16271) 2012-10-30 23:51:03 -04:00
R David Murray bfa664c5cf #12890: fix test on windows
Patch by Stephen Tonkin.
2012-10-30 20:20:54 -04:00
R David Murray cc4bacf207 #12890: fix test on windows
Patch by Stephen Tonkin.
2012-10-30 20:20:09 -04:00
Victor Stinner 4ca1cf35fb Issue #16086: PyTypeObject.tp_flags and PyType_Spec.flags are now unsigned
... (unsigned long and unsigned int) to avoid an undefined behaviour with
Py_TPFLAGS_TYPE_SUBCLASS ((1 << 31). PyType_GetFlags() result type is now
unsigned too (unsigned long, instead of long).
2012-10-30 23:40:45 +01:00
Victor Stinner e64322e034 Close #14625: Rewrite the UTF-32 decoder. It is now 3x to 4x faster
Patch written by Serhiy Storchaka.
2012-10-30 23:12:47 +01:00
Antoine Pitrou d4156c1693 Issue #16351: New function gc.get_stats() returns per-generation collection statistics. 2012-10-30 22:43:19 +01:00
Brian Curtin a5e7cd06bb Merge 3.3 2012-10-29 18:20:18 -05:00
Brian Curtin 6b879fa402 Merge 3.2 2012-10-29 18:18:43 -05:00
Brian Curtin e9aeca7c24 Fix #16197. Update docstrings and documentation to match winreg code.
Patch by Zachary Ware.
2012-10-29 18:16:39 -05:00
Petri Lehtinen f1380557e3 #14897: Enhance error messages of struct.pack and struct.pack_into
Patch by Matti Mäki.
2012-10-29 21:26:56 +02:00
Petri Lehtinen 4648b4779a #14897: Enhance error messages of struct.pack and struct.pack_into
Patch by Matti Mäki.
2012-10-29 21:25:01 +02:00
Petri Lehtinen 92c28cace4 #14897: Enhance error messages of struct.pack and struct.pack_into
Patch by Matti Mäki.
2012-10-29 21:24:07 +02:00
Nadeem Vawda 84833aa7b4 Issue #16316: mimetypes now recognizes the .xz and .txz (.tar.xz) extensions.
Patch by Serhiy Storchaka.
2012-10-28 14:52:34 +01:00
Mark Dickinson fb90c0934c Issue #14700: Fix buggy overflow checks for large precision and width in new-style and old-style formatting. 2012-10-28 10:18:03 +00:00
Georg Brandl 3962d5e892 Minor typo fix. 2012-10-28 08:48:28 +01:00
Ezio Melotti 1543b8c77e #8040: merge with 3.3. 2012-10-27 22:11:57 +03:00
Ezio Melotti 8630c1e346 #8040: merge with 3.2. 2012-10-27 22:11:33 +03:00
Ezio Melotti 380ce651e9 #8040: add a version switcher to the documentation. Patch by Yury Selivanov. 2012-10-27 22:09:16 +03:00
R David Murray dcd34a6419 merge #12890: don't emit <p> tags in text mode when logdir specified.
Patch by Jeff McNeil.
2012-10-27 14:57:22 -04:00
R David Murray c4b8e05092 merge #12890: don't emit <p> tags in text mode when logdir specified.
Patch by Jeff McNeil.
2012-10-27 14:55:25 -04:00
R David Murray 252cd0e4e0 #12890: don't emit <p> tags in text mode when logdir specified.
Patch by Jeff McNeil.
2012-10-27 14:42:47 -04:00
Hynek Schlawack 969684f2ad Merge 3.3 2012-10-27 12:56:30 +02:00
Hynek Schlawack 254af2644a #16307: Fix multiprocessing.Pool.map_async not calling its callbacks
Patch by Janne Karila.
2012-10-27 12:53:02 +02:00
Senthil Kumaran cc2f0421c7 Issue #16250: Fix URLError invocation with proper args 2012-10-27 02:48:21 -07:00
Senthil Kumaran cad7b31467 Issue #16250: Fix URLError invocation with proper args. 2012-10-27 02:26:46 -07:00
Mark Dickinson 9588593b79 Issue #16305: Merge fix from 3.3. 2012-10-25 10:48:39 +01:00
Mark Dickinson 039e0cdc28 Issue #16305: Merge fix from 3.2. 2012-10-25 10:47:46 +01:00
Mark Dickinson 76464494bc Fix math.factorial KeyboardInterrupt segfault. Thanks Amaury for report and diagnosis. 2012-10-25 10:46:28 +01:00
Andrew Svetlov a19f601fdf Update NEWS for issue #16241 2012-10-25 11:38:16 +03:00
Andrew Svetlov 9819105eed Update NEWS for issue #16241 2012-10-25 11:36:51 +03:00
Ezio Melotti 93653c48e6 #16210: merge with 3.3. 2012-10-24 23:07:16 +03:00
Ezio Melotti e6c0f0d94a #16210: merge with 3.2. 2012-10-24 23:06:56 +03:00
Ezio Melotti 837cd06d36 #16210: combine the two type() docs. Patch by Pete Sevander. 2012-10-24 23:06:25 +03:00
Vinay Sajip 5b02d68863 Merged fix of whitespace typo in Misc/NEWS from 3.3. 2012-10-23 22:50:11 +01:00
Vinay Sajip f0ef7fea90 Fixed whitespace typo in Misc/NEWS. 2012-10-23 22:49:14 +01:00
Vinay Sajip 998b105c68 Closes #16116: Merged fix from 3.3. 2012-10-23 20:27:43 +01:00
Vinay Sajip e87acc1f38 Issue #16116: Now uses corrected include and library paths when building C extensions in a venv. 2012-10-23 20:26:14 +01:00
Ezio Melotti d2e90cd62c Add Misc/NEWS entry for dd8b969d7459/#16245. 2012-10-23 21:14:34 +03:00
Ezio Melotti 32e46089a9 #16245: merge with 3.3. 2012-10-23 15:54:24 +02:00
Ezio Melotti e6e96eea51 #16245: Fix the value of a few entities in html.entities.html5. 2012-10-23 15:51:27 +02:00
Ezio Melotti ccc9e617f5 #16245: add a script to generate the html.entities.html5 dict. 2012-10-23 15:46:33 +02:00
Andrew Svetlov 3831bec20d Issue #16241: document -X faulthandler command line option.
Patch by Marek Šuppa.
2012-10-23 16:20:11 +03:00
Andrew Svetlov 950d5fdc7f Issue #16241: document -X faulthandler command line option.
Patch by Marek Šuppa.
2012-10-23 16:19:26 +03:00
Senthil Kumaran 40d8078f41 Issue #16301: Fix the localhost verification in urllib/request.py for file://. Modify tests to use localhost for local temp files, which could make Windows Buildbot (#16300) happy 2012-10-22 09:43:04 -07:00
Senthil Kumaran 3ebef36eea Issue #16250: Fix the invocations of URLError which had misplaced filename attribute for exception 2012-10-21 18:31:25 -07:00
Matthias Klose 1348747052 - Issue #16262: fix out-of-src-tree builds, if mercurial is not installed. 2012-10-21 23:14:39 +02:00
Matthias Klose aee3c76acf - Issue #16262: fix out-of-src-tree builds, if mercurial is not installed. 2012-10-21 23:12:35 +02:00
Matthias Klose c4c4842d86 - Issue #16262: fix out-of-src-tree builds, if mercurial is not installed. 2012-10-21 23:05:35 +02:00
Senthil Kumaran f577686fd3 Issue #10836: Fix exception raised when file not found in urlretrieve 2012-10-21 13:30:02 -07:00
Nadeem Vawda 78a59a6a57 Merge #14398: Fix size truncation and overflow bugs in bz2 module. 2012-10-21 21:19:11 +02:00
Nadeem Vawda 18b7fcc7a6 Merge #14398: Fix size truncation and overflow bugs in bz2 module. 2012-10-21 21:16:58 +02:00
Nadeem Vawda 5f8f0d6777 Issue #14398: Fix size truncation and overflow bugs in bz2 module. 2012-10-21 21:13:27 +02:00
Nadeem Vawda bd26b5463e Issue #12692: Fix resource leak in urllib.request. 2012-10-21 17:37:43 +02:00
Nadeem Vawda 186370b433 Issue #16034 follow-up: Apply optimizations to the lzma module. 2012-10-21 16:57:32 +02:00
Antoine Pitrou 06eecead03 Issue #12034: Fix bogus caching of result in check_GetFinalPathNameByHandle.
Patch by Atsuo Ishimoto.
2012-10-21 16:33:33 +02:00
Antoine Pitrou d3a3e640b6 Issue #16220: wsgiref now always calls close() on an iterable response.
Patch by Brent Tubbs.
2012-10-21 14:15:06 +02:00
Antoine Pitrou 550841253f Issue #16220: wsgiref now always calls close() on an iterable response.
Patch by Brent Tubbs.
2012-10-21 14:14:34 +02:00
Antoine Pitrou ae247a5ff6 Issue #16220: wsgiref now always calls close() on an iterable response.
Patch by Brent Tubbs.
2012-10-21 14:09:05 +02:00
Antoine Pitrou 6f7b0da6bc Issue #12805: Make bytes.join and bytearray.join faster when the separator is empty.
Patch by Serhiy Storchaka.
2012-10-20 23:08:34 +02:00
Nick Coghlan d4f5ad6c6e Merge fix from #6074 from 3.3 2012-10-19 23:36:15 +10:00
Nick Coghlan eb8d627bbd Issue #6074: Apply an appropriate fix for importlib based imports 2012-10-19 23:32:00 +10:00
Nick Coghlan 34937ce249 Issue #6074: Forward port Windows read-only source file fix from 2.7 2012-10-19 22:38:14 +10:00
Giampaolo Rodola' 2d51f687e1 Fix issue #16270: urllib may hang when used for retrieving files via FTP by using a context manager. 2012-10-19 13:40:28 +02:00
Giampaolo Rodola' b0cc91290c Fix issue #16270: urllib may hang when used for retrieving files via FTP by using a context manager. 2012-10-19 13:34:32 +02:00
Giampaolo Rodola' 89e92854b6 Fix issue #16270: urllib may hang when used for retrieving files via FTP by using a context manager. 2012-10-19 13:25:17 +02:00
Georg Brandl edbe30c7c7 Merge with 3.3 2012-10-19 07:37:56 +02:00
Georg Brandl 2ee776bcea Fix merging mistake. 2012-10-19 07:37:44 +02:00
Christian Heimes 743e0cd6b5 Issue #16166: Add PY_LITTLE_ENDIAN and PY_BIG_ENDIAN macros and unified
endianess detection and handling.
2012-10-17 23:52:17 +02:00
Andrew Svetlov 1e9af84e2e merge heads 2012-10-17 17:33:26 +03:00
Andrew Svetlov e60983e4a5 merge heads 2012-10-17 17:29:20 +03:00
Andrew Svetlov 6b2a28a695 null merge 2012-10-17 17:26:48 +03:00
Andrew Svetlov 72db18c4c0 null merge 2012-10-17 17:21:36 +03:00
Andrew Svetlov 0dccbe1387 null merge 2012-10-17 17:20:46 +03:00
Andrew Svetlov 41695b6673 Merge issue #9583: Document startup option/environment interaction.
Patch by Todd Rovito.
2012-10-17 17:16:45 +03:00
Andrew Svetlov 2365f41a0e Merge issue #9583: Document startup option/environment interaction.
Patch by Todd Rovito.
2012-10-17 17:16:19 +03:00
Andrew Svetlov abfc7df149 Issue #9583: Document startup option/environment interaction.
Patch by Todd Rovito.
2012-10-17 17:15:43 +03:00
Antoine Pitrou e9631e5d3a Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka. 2012-10-17 16:14:40 +02:00
Antoine Pitrou 31605ace0d Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka. 2012-10-17 16:13:55 +02:00
Antoine Pitrou 1eff0fc3cd Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka. 2012-10-17 16:12:30 +02:00
Eric Snow 42da889fec merge for issue #16160: Subclass support now works for types.SimpleNamespace. 2012-10-16 22:45:49 -07:00
Eric Snow 547298c94c Close #16160: Subclass support now works for types.SimpleNamespace. Thanks to RDM for noticing. 2012-10-16 22:35:38 -07:00
R David Murray 4d289a2a4d Merge: A couple more whatsnew updates. 2012-10-16 21:54:12 -04:00
R David Murray e54c718572 A couple more whatsnew updates. 2012-10-16 21:52:24 -04:00
Antoine Pitrou cfc22b4a9b Issue #15958: bytes.join and bytearray.join now accept arbitrary buffer objects. 2012-10-16 21:07:23 +02:00
Nick Coghlan c7c03ba5be Merge concurrent.futures example changes from 3.3 2012-10-16 22:51:11 +10:00
Nick Coghlan f06ea25df2 Tweak the threaded example in concurrent.futures 2012-10-16 22:50:04 +10:00
Trent Nelson b16269e375 Merge issue #15298: ensure _sysconfigdata is generated in build directory,
not source directory.

Patch by: Richard Oudkerk (sbt).
2012-10-16 08:17:11 -04:00
Trent Nelson c101bf32c4 Issue #15298: ensure _sysconfigdata is generated in build directory,
not source directory.

Patch by Richard Oudkerk (sbt).
2012-10-16 08:13:12 -04:00
Trent Nelson 744faddae8 Merge issue #15833: don't raise an exception if importlib can't write
byte-compiled files.

This fixes a regression introduced by 3.3.

Patch by Charles-François Natali.
2012-10-16 08:03:21 -04:00
Trent Nelson d783c8ed00 Issue #15833: don't raise an exception if importlib can't write byte-compiled
files.

This fixes a regression introduced by 3.3.  Patch by Charles-François Natali.
2012-10-16 07:47:34 -04:00