Commit graph

11067 commits

Author SHA1 Message Date
Ezio Melotti
944099ff16 #5057: null merge with 3.3 (only add tests). 2012-11-05 00:14:34 +02:00
Ezio Melotti
570942e208 #5057: null merge with 3.2 (only add tests). 2012-11-05 00:13:57 +02: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
Stefan Krah
b716f84880 Fix copy&paste errors and reformulate the tests. 2012-11-04 20:53:50 +01: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
Antoine Pitrou
5e3943317d Issue #15837: add some tests for random.shuffle().
Patch by Alessandro Moura.
2012-11-04 02:10:33 +01: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
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
0f77bf27ca Issue #16218: skip test if filesystem doesn't support required encoding 2012-11-03 14:37:37 +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
683b46aa8d Issue #16218: Fix broken test for supporting nonascii characters in python launcher 2012-11-03 12:50:01 +02:00
Stefan Krah
c38c816ea1 Merge 3.3. 2012-11-02 17:55:11 +01:00
Stefan Krah
4af77a0276 Issue #15814: Use hash function that is compatible with the equality
definition from #15573.
2012-11-02 17:49:22 +01:00
Stefan Krah
43c336b107 Merge 3.3. 2012-11-02 14:49:02 +01:00
Stefan Krah
e6996ed5d9 Issue #16145: Support legacy strings in the _csv module. 2012-11-02 14:44:20 +01: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
Andrew Svetlov
1511a5a3af Merge issue #16218: Support non ascii characters in python launcher.
Patch by Serhiy Storchaka.
2012-11-01 14:52:03 +02:00
Andrew Svetlov
90c0eb28c5 Issue #16218: Support non ascii characters in python launcher.
Patch by Serhiy Storchaka.
2012-11-01 14:51:14 +02:00
Andrew Svetlov
73ee816d05 Merge issue #16373: Prevent infinite recursion for ABC Set class operations.
Patch by Serhiy Storchaka.
2012-11-01 13:31:31 +02:00
Andrew Svetlov
b904e4256e Merge issue #16373: Prevent infinite recursion for ABC Set class operations.
Patch by Serhiy Storchaka.
2012-11-01 13:31:12 +02:00
Andrew Svetlov
bcac6ad1f3 Issue #16373: Prevent infinite recursion for ABC Set class operations. 2012-11-01 13:28:54 +02:00
Victor Stinner
fce2a6e0c0 Issue #15441, #15478: Reenable test_nonascii_abspath() on Windows
The real bug (issue #15478) has been fixed correctly.
2012-10-31 23:01:30 +01:00
Victor Stinner
afe1706457 Issue #15478: Use source filename in OSError, not destination filename
And other fixes for Windows:

 * rename, replace and link require arguments of the same type on Windows
 * readlink only supports unicode filenames on Windows
 * os.open() specifies the filename on OSError
2012-10-31 22:47:43 +01:00
Victor Stinner
a0c811e439 Issue #15478: Fix again to fix test_os on Windows 2012-10-31 22:16:38 +01:00
Andrew Svetlov
7e4f122560 Merge issue #16377: Fix bisect unittest.
Patch by Yury Selivanov.
2012-10-31 22:38:44 +02:00
Andrew Svetlov
091bf53287 Merge issue #16377: Fix bisect unittest.
Patch by Yury Selivanov.
2012-10-31 22:38:20 +02:00
Andrew Svetlov
eda1f4cf07 Issue #16377: Fix bisect unittest.
Patch by Yury Selivanov.
2012-10-31 22:37:50 +02:00