]> granicus.if.org Git - python/log
python
12 years agoIssue #16411: Fix a bug where zlib.decompressobj().flush() might try to access previo...
Nadeem Vawda [Sun, 11 Nov 2012 02:19:49 +0000 (03:19 +0100)]
Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.

Patch by Serhiy Storchaka.

12 years agoIssue #16411: Fix a bug where zlib.decompressobj().flush() might try to access previo...
Nadeem Vawda [Sun, 11 Nov 2012 02:16:44 +0000 (03:16 +0100)]
Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.

Patch by Serhiy Storchaka.

12 years agoIssue #16411: Fix a bug where zlib.decompressobj().flush() might try to access previo...
Nadeem Vawda [Sun, 11 Nov 2012 02:15:32 +0000 (03:15 +0100)]
Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.

Patch by Serhiy Storchaka.

12 years agoIssue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in decompressob...
Nadeem Vawda [Sun, 11 Nov 2012 01:24:37 +0000 (02:24 +0100)]
Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().

Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).

Patch by Serhiy Storchaka.

12 years agoIssue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in decompressob...
Nadeem Vawda [Sun, 11 Nov 2012 01:21:22 +0000 (02:21 +0100)]
Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().

Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).

Patch by Serhiy Storchaka.

12 years agoIssue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in decompressob...
Nadeem Vawda [Sun, 11 Nov 2012 01:14:36 +0000 (02:14 +0100)]
Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().

Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).

Patch by Serhiy Storchaka.

12 years agoIssue #16357: fix calling accept() on a SSLSocket created through SSLContext.wrap_soc...
Antoine Pitrou [Sun, 11 Nov 2012 00:28:22 +0000 (01:28 +0100)]
Issue #16357: fix calling accept() on a SSLSocket created through SSLContext.wrap_socket().
Original patch by Jeff McNeil.

12 years agoIssue #16357: fix calling accept() on a SSLSocket created through SSLContext.wrap_soc...
Antoine Pitrou [Sun, 11 Nov 2012 00:27:33 +0000 (01:27 +0100)]
Issue #16357: fix calling accept() on a SSLSocket created through SSLContext.wrap_socket().
Original patch by Jeff McNeil.

12 years agoIssue #16357: fix calling accept() on a SSLSocket created through SSLContext.wrap_soc...
Antoine Pitrou [Sun, 11 Nov 2012 00:25:36 +0000 (01:25 +0100)]
Issue #16357: fix calling accept() on a SSLSocket created through SSLContext.wrap_socket().
Original patch by Jeff McNeil.

12 years agoFix test_urllib broken by my previous commits. The assumptions it was
Gregory P. Smith [Sat, 10 Nov 2012 23:13:20 +0000 (15:13 -0800)]
Fix test_urllib broken by my previous commits.  The assumptions it was
testing were added as part of the issue10050 change that caused the
wrong behavior in the first place.  now all test cases agree on the
behavior.

12 years agoFix test_urllib broken by my previous commits. The assumptions it was
Gregory P. Smith [Sat, 10 Nov 2012 23:12:55 +0000 (15:12 -0800)]
Fix test_urllib broken by my previous commits.  The assumptions it was
testing were added as part of the issue10050 change that caused the
wrong behavior in the first place.  now all test cases agree on the
behavior.

12 years agoMerge 3.3.
Stefan Krah [Sat, 10 Nov 2012 22:31:22 +0000 (23:31 +0100)]
Merge 3.3.

12 years agoAccept Unicode legacy strings in the Decimal constructor.
Stefan Krah [Sat, 10 Nov 2012 22:09:04 +0000 (23:09 +0100)]
Accept Unicode legacy strings in the Decimal constructor.

12 years agoFixes issue #16409: The reporthook callback made by the legacy
Gregory P. Smith [Sat, 10 Nov 2012 21:44:50 +0000 (13:44 -0800)]
Fixes issue #16409: The reporthook callback made by the legacy
urllib.request.urlretrieve API now properly supplies a constant
non-zero block_size as it did in Python 3.2 and 2.7.  This matches the
behavior of urllib.request.URLopener.retrieve.

12 years agoFixes issue #16409: The reporthook callback made by the legacy
Gregory P. Smith [Sat, 10 Nov 2012 21:43:44 +0000 (13:43 -0800)]
Fixes issue #16409: The reporthook callback made by the legacy
urllib.request.urlretrieve API now properly supplies a constant
non-zero block_size as it did in Python 3.2 and 2.7.  This matches the
behavior of urllib.request.URLopener.retrieve.

12 years agoIssue #16444: disable undecodable characters in test_non_ascii() test until
Victor Stinner [Sat, 10 Nov 2012 21:32:08 +0000 (22:32 +0100)]
Issue #16444: disable undecodable characters in test_non_ascii() test until
the FreeBSD issue is fixed

12 years agoIssue #14794: slice.indices no longer returns OverflowError for out-of-range start...
Mark Dickinson [Sat, 10 Nov 2012 14:52:10 +0000 (14:52 +0000)]
Issue #14794: slice.indices no longer returns OverflowError for out-of-range start, stop, step or length.

12 years agoIssue #16444, #16218: Use TESTFN_UNDECODABLE on UNIX
Victor Stinner [Sat, 10 Nov 2012 11:07:39 +0000 (12:07 +0100)]
Issue #16444, #16218: Use TESTFN_UNDECODABLE on UNIX

Check if data is decoded by os.fsdecode() (filesystem encoding with
surrogateescape error handler, PEP 383), not by UTF-8 or the filesystem
encoding in strict mode.

Use TESTFN_UNDECODABLE in test_cmd_line_script.test_non_ascii() on UNIX.

12 years agoMerge from 3.3: adjust set and frozenset function docs (issue #16436).
Chris Jerdonek [Sat, 10 Nov 2012 02:58:47 +0000 (18:58 -0800)]
Merge from 3.3: adjust set and frozenset function docs (issue #16436).

12 years agoMerge from 3.2: adjust set and frozenset function docs (issue #16436).
Chris Jerdonek [Sat, 10 Nov 2012 02:58:06 +0000 (18:58 -0800)]
Merge from 3.2: adjust set and frozenset function docs (issue #16436).

12 years agoLink set and frozenset function docs to their class definitions (issue #16436).
Chris Jerdonek [Sat, 10 Nov 2012 02:57:32 +0000 (18:57 -0800)]
Link set and frozenset function docs to their class definitions (issue #16436).

12 years agoMerge from 3.3: improve FAQ link in documentation (for issue #16435).
Chris Jerdonek [Sat, 10 Nov 2012 01:54:21 +0000 (17:54 -0800)]
Merge from 3.3: improve FAQ link in documentation (for issue #16435).

12 years agoMerge from 3.2: improve FAQ link in documentation (for issue #16435).
Chris Jerdonek [Sat, 10 Nov 2012 01:53:14 +0000 (17:53 -0800)]
Merge from 3.2: improve FAQ link in documentation (for issue #16435).

12 years agoImprove FAQ link in documentation (for issue #16435).
Chris Jerdonek [Sat, 10 Nov 2012 01:52:30 +0000 (17:52 -0800)]
Improve FAQ link in documentation (for issue #16435).

12 years ago#13301: merge with 3.3.
Ezio Melotti [Fri, 9 Nov 2012 10:51:30 +0000 (11:51 +0100)]
#13301: merge with 3.3.

12 years ago#13301: merge with 3.2.
Ezio Melotti [Fri, 9 Nov 2012 10:51:03 +0000 (11:51 +0100)]
#13301: merge with 3.2.

12 years ago#13301: use ast.literal_eval() instead of eval() in Tools/i18n/msgfmt.py. Patch...
Ezio Melotti [Fri, 9 Nov 2012 10:46:19 +0000 (11:46 +0100)]
#13301: use ast.literal_eval() instead of eval() in Tools/i18n/msgfmt.py.  Patch by Serhiy Storchaka.

12 years ago#16440: merge with 3.3.
Ezio Melotti [Thu, 8 Nov 2012 23:09:27 +0000 (01:09 +0200)]
#16440: merge with 3.3.

12 years ago#16440: merge with 3.2.
Ezio Melotti [Thu, 8 Nov 2012 23:09:10 +0000 (01:09 +0200)]
#16440: merge with 3.2.

12 years ago#16440: fix exception type and clarify example.
Ezio Melotti [Thu, 8 Nov 2012 23:08:25 +0000 (01:08 +0200)]
#16440: fix exception type and clarify example.

12 years agoMerge issue #16439: Fix markup in example for stdtypes.
Andrew Svetlov [Thu, 8 Nov 2012 15:27:53 +0000 (17:27 +0200)]
Merge issue #16439: Fix markup in example for stdtypes.

Thanks to Yongzhi Pan.

12 years agoMerge issue #16439: Fix markup in example for stdtypes.
Andrew Svetlov [Thu, 8 Nov 2012 15:27:39 +0000 (17:27 +0200)]
Merge issue #16439: Fix markup in example for stdtypes.

Thanks to Yongzhi Pan.

12 years agoIssue #16439: Fix markup in example for stdtypes.
Andrew Svetlov [Thu, 8 Nov 2012 15:26:53 +0000 (17:26 +0200)]
Issue #16439: Fix markup in example for stdtypes.

Thanks to Yongzhi Pan.

12 years agoMerge issue #16435: Link in tutorial now points to python3 FAQ.
Andrew Svetlov [Thu, 8 Nov 2012 14:11:44 +0000 (16:11 +0200)]
Merge issue #16435: Link in tutorial now points to python3 FAQ.

Thanks to Yongzhi Pan from docs@

12 years agoMerge issue #16435: Link in tutorial now points to python3 FAQ.
Andrew Svetlov [Thu, 8 Nov 2012 14:11:22 +0000 (16:11 +0200)]
Merge issue #16435: Link in tutorial now points to python3 FAQ.

Thanks to Yongzhi Pan from docs@

12 years agoIssue #16435: Link in tutorial now points to python3 FAQ.
Andrew Svetlov [Thu, 8 Nov 2012 14:10:49 +0000 (16:10 +0200)]
Issue #16435: Link in tutorial now points to python3 FAQ.

Thanks to Yongzhi Pan from docs@

12 years agoMerge 3.3.
Stefan Krah [Thu, 8 Nov 2012 10:19:55 +0000 (11:19 +0100)]
Merge 3.3.

12 years agoIssue #16431: Finally, consider all permutations.
Stefan Krah [Thu, 8 Nov 2012 10:17:29 +0000 (11:17 +0100)]
Issue #16431: Finally, consider all permutations.

12 years ago#16433: merge with 3.3.
Ezio Melotti [Thu, 8 Nov 2012 09:09:28 +0000 (11:09 +0200)]
#16433: merge with 3.3.

12 years ago#16433: merge with 3.2.
Ezio Melotti [Thu, 8 Nov 2012 09:09:13 +0000 (11:09 +0200)]
#16433: merge with 3.2.

12 years ago#16433: fix docstring of assertNotEqual.
Ezio Melotti [Thu, 8 Nov 2012 09:08:39 +0000 (11:08 +0200)]
#16433: fix docstring of assertNotEqual.

12 years ago#11481: merge with 3.3.
Ezio Melotti [Thu, 8 Nov 2012 09:06:19 +0000 (11:06 +0200)]
#11481: merge with 3.3.

12 years ago#11481: merge with 3.2.
Ezio Melotti [Thu, 8 Nov 2012 09:06:01 +0000 (11:06 +0200)]
#11481: merge with 3.2.

12 years ago#11481: update copyreg docs and add example.
Ezio Melotti [Thu, 8 Nov 2012 09:04:57 +0000 (11:04 +0200)]
#11481: update copyreg docs and add example.

12 years agoMerge heads.
Ezio Melotti [Thu, 8 Nov 2012 08:11:22 +0000 (10:11 +0200)]
Merge heads.

12 years ago#10385: merge with 3.3.
Ezio Melotti [Thu, 8 Nov 2012 08:09:24 +0000 (10:09 +0200)]
#10385: merge with 3.3.

12 years ago#10385: merge with 3.2.
Ezio Melotti [Thu, 8 Nov 2012 08:09:06 +0000 (10:09 +0200)]
#10385: merge with 3.2.

12 years ago#10385: use the mod role in subprocess docs.
Ezio Melotti [Thu, 8 Nov 2012 08:07:10 +0000 (10:07 +0200)]
#10385: use the mod role in subprocess docs.

12 years agoMerge 3.3.
Stefan Krah [Wed, 7 Nov 2012 22:54:37 +0000 (23:54 +0100)]
Merge 3.3.

12 years agoIssue #16431: Also fix the opposite direction.
Stefan Krah [Wed, 7 Nov 2012 22:47:19 +0000 (23:47 +0100)]
Issue #16431: Also fix the opposite direction.

12 years agoMerge 3.3.
Stefan Krah [Wed, 7 Nov 2012 22:20:10 +0000 (23:20 +0100)]
Merge 3.3.

12 years agoIssue #16431: Use the type information when constructing a Decimal subtype
Stefan Krah [Wed, 7 Nov 2012 22:12:25 +0000 (23:12 +0100)]
Issue #16431: Use the type information when constructing a Decimal subtype
from a Decimal argument.

12 years agoIssue #15001: fix segfault on "del sys.module['__main__']"
Hynek Schlawack [Wed, 7 Nov 2012 08:10:49 +0000 (09:10 +0100)]
Issue #15001: fix segfault on "del sys.module['__main__']"

Patch by Victor Stinner.

12 years agoIssue #15001: fix segfault on "del sys.module['__main__']"
Hynek Schlawack [Wed, 7 Nov 2012 08:07:22 +0000 (09:07 +0100)]
Issue #15001: fix segfault on "del sys.module['__main__']"

Patch by Victor Stinner.

12 years agoIssue #15001: fix segfault on "del sys.module['__main__']"
Hynek Schlawack [Wed, 7 Nov 2012 08:02:24 +0000 (09:02 +0100)]
Issue #15001: fix segfault on "del sys.module['__main__']"

Patch by Victor Stinner.

12 years agoRemove outdated comment
Victor Stinner [Tue, 6 Nov 2012 23:57:26 +0000 (00:57 +0100)]
Remove outdated comment

12 years agoClose #16311: Use the _PyUnicodeWriter API in text decoders
Victor Stinner [Tue, 6 Nov 2012 23:36:38 +0000 (00:36 +0100)]
Close #16311: Use the _PyUnicodeWriter API in text decoders

 * Remove unicode_widen(): replaced with _PyUnicodeWriter_Prepare()
 * Remove unicode_putchar(): replaced with
   PyUnicodeWriter_Prepare() + PyUnicode_WRITER()
 * When handling an decoding error, only overallocate the buffer by +25%
   instead of +100%

12 years agoIssue #16414: Fix test_os on Windows, don't test os.listdir() with undecodable
Victor Stinner [Tue, 6 Nov 2012 23:10:14 +0000 (00:10 +0100)]
Issue #16414: Fix test_os on Windows, don't test os.listdir() with undecodable

With the ANSI code page 932, os.listdir(b'\xe7') return an empty list (instead
of failing), whereas os.listdir(b'\xff') raises a FileNotFoundError.

It looks like a Windows bug: b'\xe7' directory does not exist,
FindFirstFileA(b'\xe7') fails with ERROR_FILE_NOT_FOUND (2), instead of
ERROR_PATH_NOT_FOUND (3).

12 years agoMerge.
Stefan Krah [Tue, 6 Nov 2012 22:55:58 +0000 (23:55 +0100)]
Merge.

12 years agoMerge.
Stefan Krah [Tue, 6 Nov 2012 22:51:42 +0000 (23:51 +0100)]
Merge.

12 years agoIssue #16414: Test more characters for support.FS_NONASCII
Victor Stinner [Tue, 6 Nov 2012 22:43:21 +0000 (23:43 +0100)]
Issue #16414: Test more characters for support.FS_NONASCII

It should increase the probability of finding a non-ASCII character on any
locale encoding.

12 years agoIssue #16414: Fix typo in support.TESTFN_NONASCII (useless space)
Victor Stinner [Tue, 6 Nov 2012 22:40:22 +0000 (23:40 +0100)]
Issue #16414: Fix typo in support.TESTFN_NONASCII (useless space)

12 years agoNull merge.
Stefan Krah [Tue, 6 Nov 2012 22:36:08 +0000 (23:36 +0100)]
Null merge.

12 years agoIssue #16414: Fix support.TESTFN_UNDECODABLE and test_genericpath.test_nonascii_abspath()
Victor Stinner [Tue, 6 Nov 2012 22:33:46 +0000 (23:33 +0100)]
Issue #16414: Fix support.TESTFN_UNDECODABLE and test_genericpath.test_nonascii_abspath()

 * support.TESTFN_UNDECODABLE was decodable if the filesystem encoding was
   cp932
 * test_genericpath.test_nonascii_abspath() didn't work on Windows if the
   path was not decodable (ex: with cp932)

12 years agoBackport fc8f1b1c76bf.
Stefan Krah [Tue, 6 Nov 2012 22:27:24 +0000 (23:27 +0100)]
Backport fc8f1b1c76bf.

12 years agoIssue #16414: Add support.FS_NONASCII and support.TESTFN_NONASCII
Victor Stinner [Tue, 6 Nov 2012 22:23:43 +0000 (23:23 +0100)]
Issue #16414: Add support.FS_NONASCII and support.TESTFN_NONASCII

These constants are used to test functions with non-ASCII data, especially
filenames.

12 years agoReversed changes from issue9584
Tim Golden [Tue, 6 Nov 2012 15:34:23 +0000 (15:34 +0000)]
Reversed changes from issue9584

12 years agoBacked out changeset dafca4714298
Tim Golden [Tue, 6 Nov 2012 15:33:30 +0000 (15:33 +0000)]
Backed out changeset dafca4714298

12 years agoBacked out changeset 5cf6c427fd39
Tim Golden [Tue, 6 Nov 2012 15:32:50 +0000 (15:32 +0000)]
Backed out changeset 5cf6c427fd39

12 years agoCorrect mis-indented whitespace
Tim Golden [Tue, 6 Nov 2012 13:55:42 +0000 (13:55 +0000)]
Correct mis-indented whitespace

12 years agoissue9584: Add {} list expansion to glob. Original patch by Mathieu Bridon
Tim Golden [Tue, 6 Nov 2012 13:50:42 +0000 (13:50 +0000)]
issue9584: Add {} list expansion to glob. Original patch by Mathieu Bridon

12 years agoMerge typo fix.
Ezio Melotti [Mon, 5 Nov 2012 20:23:16 +0000 (22:23 +0200)]
Merge typo fix.

12 years agoFix typo noticed by Tom Lynn.
Ezio Melotti [Mon, 5 Nov 2012 20:22:48 +0000 (22:22 +0200)]
Fix typo noticed by Tom Lynn.

12 years agoMerge #6717 crasher from 3.3
Nick Coghlan [Mon, 5 Nov 2012 11:33:22 +0000 (21:33 +1000)]
Merge #6717 crasher from 3.3

12 years agoMerge #6717 crasher from 3.2
Nick Coghlan [Mon, 5 Nov 2012 11:32:11 +0000 (21:32 +1000)]
Merge #6717 crasher from 3.2

12 years agoRecord a known crasher from #6717
Nick Coghlan [Mon, 5 Nov 2012 11:26:57 +0000 (21:26 +1000)]
Record a known crasher from #6717

12 years agoMerge from 3.3
Nick Coghlan [Mon, 5 Nov 2012 10:40:57 +0000 (20:40 +1000)]
Merge from 3.3

12 years agoThe migration to importlib eliminated this crasher
Nick Coghlan [Mon, 5 Nov 2012 10:40:25 +0000 (20:40 +1000)]
The migration to importlib eliminated this crasher

If anyone finds another recursive C path that bypasses the recursion
limiting, they can add a new crasher example.

12 years agoIssue #15641: Clean up deprecated classes from importlib
Andrew Svetlov [Mon, 5 Nov 2012 07:34:46 +0000 (09:34 +0200)]
Issue #15641: Clean up deprecated classes from importlib

Patch by Taras Lyapun.

12 years agoRevome extra .py suffix
Andrew Svetlov [Mon, 5 Nov 2012 07:28:42 +0000 (09:28 +0200)]
Revome extra .py suffix

12 years agoIssue #16218: Fix test for issue again
Andrew Svetlov [Mon, 5 Nov 2012 06:20:15 +0000 (08:20 +0200)]
Issue #16218: Fix test for issue again

12 years ago(Merge 3.3) Close #15165: Fix test_email on Windows 64 bits
Victor Stinner [Mon, 5 Nov 2012 01:06:34 +0000 (02:06 +0100)]
(Merge 3.3) Close #15165: Fix test_email on Windows 64 bits

Use year 1990 instead of year 1970 to avoid issues with negative timestamps.

12 years agoClose #15165: Fix test_email on Windows 64 bits
Victor Stinner [Mon, 5 Nov 2012 01:06:13 +0000 (02:06 +0100)]
Close #15165: Fix test_email on Windows 64 bits

Use year 1990 instead of year 1970 to avoid issues with negative timestamps.

12 years agoIssue #15478: Fix test_pep277 on Windows
Victor Stinner [Mon, 5 Nov 2012 00:28:28 +0000 (01:28 +0100)]
Issue #15478: Fix test_pep277 on Windows

os.listdir() now returns the original path in OSError.filename (on any
platform), even if "*.*" was added to the path (on Windows).

12 years agoIssue #15478: Oops, fix regression in os.open() on Windows
Victor Stinner [Mon, 5 Nov 2012 00:20:58 +0000 (01:20 +0100)]
Issue #15478: Oops, fix regression in os.open() on Windows

os.open() uses _wopen() which sets errno, not the Windows error code.

12 years agoIssue #16350: Fix zlib decompressor handling of unused_data with multiple calls to...
Nadeem Vawda [Sun, 4 Nov 2012 23:40:00 +0000 (00:40 +0100)]
Issue #16350: Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.

Patch by Serhiy Storchaka.

12 years agoIssue #16350: Fix zlib decompressor handling of unused_data with multiple calls to...
Nadeem Vawda [Sun, 4 Nov 2012 23:38:48 +0000 (00:38 +0100)]
Issue #16350: Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.

Patch by Serhiy Storchaka.

12 years agoIssue #16350: Fix zlib decompressor handling of unused_data with multiple calls to...
Nadeem Vawda [Sun, 4 Nov 2012 23:37:42 +0000 (00:37 +0100)]
Issue #16350: Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.

Patch by Serhiy Storchaka.

12 years ago(Merge 3.3) Issue #8271: Fix compilation on Windows
Victor Stinner [Sun, 4 Nov 2012 23:00:50 +0000 (00:00 +0100)]
(Merge 3.3) Issue #8271: Fix compilation on Windows

12 years agoIssue #8271: Fix compilation on Windows
Victor Stinner [Sun, 4 Nov 2012 22:59:15 +0000 (23:59 +0100)]
Issue #8271: Fix compilation on Windows

12 years ago#5057: null merge with 3.3 (only add tests).
Ezio Melotti [Sun, 4 Nov 2012 22:14:34 +0000 (00:14 +0200)]
#5057: null merge with 3.3 (only add tests).

12 years ago#5057: null merge with 3.2 (only add tests).
Ezio Melotti [Sun, 4 Nov 2012 22:13:57 +0000 (00:13 +0200)]
#5057: null merge with 3.2 (only add tests).

12 years ago#5057: the peepholer no longer optimizes subscription on unicode literals (e.g. u...
Ezio Melotti [Sun, 4 Nov 2012 22:06:32 +0000 (00:06 +0200)]
#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.

12 years ago#8271: merge with 3.3.
Ezio Melotti [Sun, 4 Nov 2012 21:23:09 +0000 (23:23 +0200)]
#8271: merge with 3.3.

12 years ago#8271: the utf-8 decoder now outputs the correct number of U+FFFD characters when...
Ezio Melotti [Sun, 4 Nov 2012 21:21:38 +0000 (23:21 +0200)]
#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.

12 years agoFix copy&paste errors and reformulate the tests.
Stefan Krah [Sun, 4 Nov 2012 19:53:50 +0000 (20:53 +0100)]
Fix copy&paste errors and reformulate the tests.

12 years agoMerge from 3.3
Nick Coghlan [Sun, 4 Nov 2012 14:56:02 +0000 (00:56 +1000)]
Merge from 3.3

12 years agoProperly credit patch
Nick Coghlan [Sun, 4 Nov 2012 14:55:46 +0000 (00:55 +1000)]
Properly credit patch

12 years agoIssue #5765: Merge from 3.3
Nick Coghlan [Sun, 4 Nov 2012 14:19:49 +0000 (00:19 +1000)]
Issue #5765: Merge from 3.3

12 years agoIssue #5765: Also check the compiler when finding the recursion limit
Nick Coghlan [Sun, 4 Nov 2012 14:19:18 +0000 (00:19 +1000)]
Issue #5765: Also check the compiler when finding the recursion limit