Commit Graph

58408 Commits

Author SHA1 Message Date
Benjamin Peterson 448e81b2da add fixer for reload() -> imp.reload() (closes #11797)\n\nPatch by Laurie Clark-Michalek and Berker Peksag 2012-12-07 22:44:10 -05:00
Chris Jerdonek e7f2186f99 Issue #16495: remove extraneous NULL encoding check from bytes_decode().
The NULL encoding check in bytes_decode() was unnecessary because this case
is already taken care of by the call to _Py_normalize_encoding() inside
PyUnicode_Decode().
2012-12-07 15:51:53 -08:00
Raymond Hettinger 527507d72e Improve OrderedDict equality test. 2012-12-07 10:18:22 -08:00
Benjamin Peterson 70b224d8d4 assert than we never try to deal with True, False, or None as a name 2012-12-06 17:49:58 -05:00
Benjamin Peterson 442f20996d create NameConstant AST class for None, True, and False literals (closes #16619) 2012-12-06 17:41:04 -05:00
Andrew Svetlov 4b237e3b11 Specify which I/O ABC methods have implementations in the docs. 2012-12-06 12:21:22 +02:00
Andrew Svetlov f04d1bb170 Specify which I/O ABC methods have implementations in the docs. 2012-12-06 12:21:12 +02:00
Andrew Svetlov ed636a84b9 Specify which I/O ABC methods have implementations in the docs. 2012-12-06 12:20:56 +02:00
Andrew Svetlov 746d0434ae Update comment: SAVE_EXC_STATE and SWAP_EXC_STATE macroses are saave_exc_state and swap_exc_state functions now. 2012-12-05 17:59:29 +02:00
Andrew Svetlov c37cfd6709 Update comment: SAVE_EXC_STATE and SWAP_EXC_STATE macroses are saave_exc_state and swap_exc_state functions now. 2012-12-05 17:59:10 +02:00
Andrew Svetlov 34cf090e8c Merge: skip pdb test for #13120 if threading is not available. 2012-12-05 15:07:10 +02:00
Andrew Svetlov f0eb7adc7f Merge: skip pdb test for #13120 if threading is not available. 2012-12-05 15:06:54 +02:00
Andrew Svetlov 96bc04369a Skip pdb test for #13120 if threading is not available. 2012-12-05 15:06:23 +02:00
Andrew Svetlov b1715ea435 Merge 3.3 2012-12-05 11:12:50 +02:00
Andrew Svetlov 73a5a12dcf Fix typo. 2012-12-05 11:12:14 +02:00
Eric Snow a6cfb28bd2 Issue #15627: This is simply an update to the name of a new method recently added
to importlib.abc.SourceLoader.
2012-12-04 23:43:43 -08:00
Andrew Svetlov 1dfb5c1cf3 Merge issue #13120: Allow to call pdb.set_trace() from thread.
Patch by Ilya Sandler.
2012-12-04 21:10:20 +02:00
Andrew Svetlov 539ee5da6f Issue #13120: Allow to call pdb.set_trace() from thread.
Patch by Ilya Sandler.
2012-12-04 21:08:28 +02:00
Victor Stinner fe907e1870 Issue #16444: test more bytes in support.TESTFN_UNDECODABLE to support more Windows code pages 2012-12-04 11:55:04 +01:00
Andrew Svetlov de67a4233c Merge issue #13120: Allow to call pdb.set_trace() from thread.
Patch by Ilya Sandler.
2012-12-04 21:10:55 +02:00
Victor Stinner 8dbd421b4d Cleanup unicodeobject.c
* Remove micro-optization:
   (errors == "surrogateescape" || strcmp(errors, "surrogateescape") == 0).
   Only use strcmp()
 * Initialize 'arg' members in unicode_format_arg() to help the compiler to
   diagnose real bugs and also make the code simpler to read
2012-12-04 09:30:24 +01:00
Victor Stinner d45c7f8d74 Issue #16455: On FreeBSD and Solaris, if the locale is C, the
ASCII/surrogateescape codec is now used, instead of the locale encoding, to
decode the command line arguments. This change fixes inconsistencies with
os.fsencode() and os.fsdecode() because these operating systems announces an
ASCII locale encoding, whereas the ISO-8859-1 encoding is used in practice.
2012-12-04 01:34:47 +01:00
Antoine Pitrou ca9f8b21c8 Fix test splitting in previous commit. 2012-12-03 21:09:27 +01:00
Antoine Pitrou 56a2ae27e3 Fix test splitting in previous commit. 2012-12-03 21:09:08 +01:00
Antoine Pitrou 86067c2e17 Fix test splitting in previous commit. 2012-12-03 21:08:43 +01:00
Antoine Pitrou d9cd554934 Split the bigmem re test in two separate tests with different memory requirements. 2012-12-03 20:56:27 +01:00
Antoine Pitrou b33941ab02 Split the bigmem re test in two separate tests with different memory requirements. 2012-12-03 20:55:56 +01:00
Antoine Pitrou 1f1888ec1e Split the bigmem re test in two separate tests with different memory requirements. 2012-12-03 20:53:12 +01:00
Andrew Svetlov 2d72781082 Merge issue #16583: Prevent nesting SystemExit in tkinter.CallWrapper 2012-12-03 16:13:48 +02:00
Andrew Svetlov e854433686 Merge issue #16583: Prevent nesting SystemExit in tkinter.CallWrapper 2012-12-03 16:13:34 +02:00
Andrew Svetlov eb0abce2f8 Issue #16583: Prevent nesting SystemExit in tkinter.CallWrapper 2012-12-03 16:13:07 +02:00
Victor Stinner 5ac31fa0a8 (Null merge 3.3) 2012-12-03 14:12:50 +01:00
Victor Stinner 14755b1f6f (Null merge 3.2) 2012-12-03 14:12:22 +01:00
Victor Stinner 41a234a679 Issue #16416: Fix compilation error 2012-12-03 14:11:57 +01:00
Victor Stinner 2660e427d1 (Merge 3.2) Issue #16416: On Mac OS X, operating system data are now always
encoded/decoded to/from UTF-8/surrogateescape, instead of the locale encoding
(which may be ASCII if no locale environment variable is set), to avoid
inconsistencies with os.fsencode() and os.fsdecode() functions which are
already using UTF-8/surrogateescape.
2012-12-03 12:48:53 +01:00
Victor Stinner 27b1ca29cc Issue #16416: On Mac OS X, operating system data are now always
encoded/decoded to/from UTF-8/surrogateescape, instead of the locale encoding
(which may be ASCII if no locale environment variable is set), to avoid
inconsistencies with os.fsencode() and os.fsdecode() functions which are
already using UTF-8/surrogateescape.
2012-12-03 12:47:59 +01:00
Antoine Pitrou 0e9958b543 Issue #16562: Optimize dict equality testing.
Patch by Serhiy Storchaka (reviewed by Martin and Raymond).
2012-12-02 19:10:07 +01:00
Benjamin Peterson 181e20a6fc merge 3.3 2012-12-02 13:04:44 -05:00
Benjamin Peterson a2816c2b11 more test to more general test file, so it can test more things 2012-12-02 13:04:37 -05:00
Benjamin Peterson 661c346ab3 merge 3.3 2012-12-02 12:37:09 -05:00
Benjamin Peterson 2f560fa300 loosen test now that bytes are allowed 2012-12-02 12:37:04 -05:00
Benjamin Peterson c77dd20698 merge 3.3 2012-12-02 11:33:14 -05:00
Benjamin Peterson 78f7e3a8dc document UnicodeError attributes 2012-12-02 11:33:06 -05:00
Benjamin Peterson 196035595f document that encoding error handlers may return bytes (#16585) 2012-12-02 11:26:10 -05:00
Benjamin Peterson 26e5335a46 merge 3.3 (#16585) 2012-12-02 11:21:02 -05:00
Benjamin Peterson 47a00f3d1a support encoding error handlers that return bytes (closes #16585) 2012-12-02 11:20:28 -05:00
Benjamin Peterson 3d490d4eff merge 3.3 2012-12-02 10:53:48 -05:00
Benjamin Peterson aff472394c unicode -> str 2012-12-02 10:53:41 -05:00
Mark Dickinson 96e2cdbae9 Issue 10052: null merge from 3.3 2012-12-02 13:22:32 +00:00
Mark Dickinson 6e61d18891 Issue 10052: merge fix from 3.2. 2012-12-02 13:21:37 +00:00