Commit Graph

78664 Commits

Author SHA1 Message Date
Victor Stinner 672559fc4f (Merge 3.3) Issue #17702: use assertRaises() for the unit test 2013-04-14 16:43:38 +02:00
Victor Stinner 839e5eafcb Issue #17702: use assertRaises() for the unit test 2013-04-14 16:43:03 +02:00
Victor Stinner 43aa0d07e2 (Merge 3.3) Close #17702: os.environ now raises KeyError with the original
environment variable name (str on UNIX), instead of using the encoded name
(bytes on UNIX).
2013-04-14 16:38:35 +02:00
Victor Stinner 6d10139d70 Close #17702: os.environ now raises KeyError with the original environment
variable name (str on UNIX), instead of using the encoded name (bytes on UNIX).
2013-04-14 16:35:04 +02:00
Victor Stinner 76b3b2726c stringlib: remove unused STRINGLIB_RESIZE macro 2013-04-14 16:29:09 +02:00
Nick Coghlan 685bd4a37a Merge fix for #16163 from 3.3 2013-04-14 23:01:11 +10:00
Nick Coghlan c4e0d982f3 Close issue #16163: handle submodules in pkgutil.iter_importers 2013-04-14 22:30:42 +10:00
Vinay Sajip 8b4c7198db Issue #17713: additional tweak to test. 2013-04-14 12:25:25 +01:00
Vinay Sajip d86ac96fcf Closes #17713: Fixed bug in test_compute_rollover_weekly_attime. 2013-04-14 12:20:46 +01:00
R David Murray 8a34596bbe #2118: IOError is deprecated, use OSError. 2013-04-14 06:46:35 -04:00
Alexandre Vassalotti 96d6a78ce0 Merge 3.3 2013-04-14 03:44:47 -07:00
Serhiy Storchaka a3e32c92cf Closes #16551. Cleanup pickle.py. 2013-04-14 13:37:02 +03:00
Alexandre Vassalotti 8157459d6b Merge heads. 2013-04-14 03:31:40 -07:00
Alexandre Vassalotti 8db89ca56c Issue #16550: Update the opcode descriptions of pickletools to use unsigned
integers where appropriate.  Initial patch by Serhiy Storchaka.
2013-04-14 03:30:35 -07:00
Georg Brandl c8fb047d69 merge with 3.3 2013-04-14 12:03:01 +02:00
Georg Brandl 1aca953a40 Fix example ignoring ".svn" directories in compileall. 2013-04-14 12:02:43 +02:00
Georg Brandl e827ea866d merge with 3.3 2013-04-14 11:59:19 +02:00
Georg Brandl 1e1134a314 The Integral class does not contain implementations for the bit-shifting operations. (See #3056.) 2013-04-14 11:58:54 +02:00
Georg Brandl 015427e659 merge with 3.3 2013-04-14 11:55:44 +02:00
Georg Brandl 5e2954e083 Clarify that the function *definition* creates the function and the binding in the module globals. 2013-04-14 11:47:46 +02:00
Georg Brandl b979f10002 merge with 3.3 2013-04-14 11:40:27 +02:00
Georg Brandl 1d472b74cb Closes #14462: allow any valid Python identifier in sre group names, as documented. 2013-04-14 11:40:00 +02:00
Alexandre Vassalotti cc7571727f Style cleanups for pickle.py and _pickle. 2013-04-14 02:25:10 -07:00
Georg Brandl f36f20f850 merge with 3.3 2013-04-14 11:16:46 +02:00
Georg Brandl 991fc5736e Closes #13638: document PyErr_SetFromErrnoWithFilenameObject,
PyErr_SetFromWindowsErrWithFilenameObject, and
PyErr_SetExcFromWindowsErrWithFilenameObject.

Note that PyErr_SetExcFromWindowsErrWithFilenameObjectAndSomeOtherParametersSoThatTheNameGetsSoLongThatNobodyIsEverGonnaUseThisStrangeFunctionForAnything is still undocumented.
2013-04-14 11:12:16 +02:00
Alexandre Vassalotti 6d9e14593e Merge 3.3 2013-04-14 02:11:16 -07:00
Alexandre Vassalotti 5c4874f7a2 Merge heads. 2013-04-14 02:10:14 -07:00
Georg Brandl 1e6a3a2fe9 merge with 3.3 2013-04-14 10:59:17 +02:00
Georg Brandl a204636b91 bind('') does not do the same as bind('localhost') 2013-04-14 10:59:04 +02:00
Georg Brandl f221377d8b merge with 3.3 2013-04-14 10:50:13 +02:00
Georg Brandl 5f4b4ac73e Update code examples using collections.abc classes. 2013-04-14 10:50:05 +02:00
Georg Brandl 9def20566a merge with 3.3 2013-04-14 10:31:24 +02:00
Georg Brandl 7b8c1324d7 Closes #17726: small clarification in design FAQ. 2013-04-14 10:31:06 +02:00
Alexandre Vassalotti 00d83f2d05 Clean up error messages raised by save_reduce in _pickle. 2013-04-14 01:28:01 -07:00
Georg Brandl 94a9a2da32 merge with 3.3 2013-04-14 10:19:31 +02:00
Georg Brandl e09596862a Update using/mac documentation which was still on 2.5. 2013-04-14 10:17:35 +02:00
Georg Brandl cf72c5e4ea merge with 3.3 2013-04-14 10:13:50 +02:00
Georg Brandl dec3b3f704 Clarify point in name mangling doc. 2013-04-14 10:13:42 +02:00
Alexandre Vassalotti bdc3eb7623 Merge 3.3 2013-04-14 00:58:28 -07:00
Alexandre Vassalotti 6eea818423 Fix pickling test in test_memoryio.
The test was closing the orginal object instead the copy. This didn't result
in visible failures because the loop range was incorrect as well.
2013-04-14 00:56:39 -07:00
Meador Inge e94950ea3f Merge heads. 2013-04-13 20:59:03 -05:00
Meador Inge 2581bdb86a Issue #16804: Fix 'python -S -m site' failure.
This commit fixes a bug in the 'site' module that was causing an exception
to incorrectly be thrown when running 'python -S -m site'.  The problem was
that 'USER_BASE' and 'USER_SITE' were being accessed before they were properly
initialized.  The code has been changed to use 'getuserbase' and
'getusersitepackages' instead so that the initialization always happens.
2013-04-13 20:51:04 -05:00
Meador Inge 9a7a81195c Issue #16804: Fix 'python -S -m site' failure.
This commit fixes a bug in the 'site' module that was causing an exception
to incorrectly be thrown when running 'python -S -m site'.  The problem was
that 'USER_BASE' and 'USER_SITE' were being accessed before they were properly
initialized.  The code has been changed to use 'getuserbase' and
'getusersitepackages' instead so that the initialization always happens.
2013-04-13 20:29:49 -05:00
Victor Stinner 8a1a6cffd6 Add _PyUnicodeWriter_WriteCharInline() 2013-04-14 02:35:33 +02:00
Victor Stinner d949126995 Issue #17693: CJK encoders now use the new Unicode API (PEP 393) 2013-04-14 02:06:32 +02:00
Benjamin Peterson 71557596b2 remove pointless change 2013-04-13 17:20:36 -04:00
Benjamin Peterson 214a7d2674 properly lookup the __round__ special method (closes #17722) 2013-04-13 17:19:01 -04:00
Antoine Pitrou c1ab0bd788 Fix misindent. This would test half less possibilities. 2013-04-13 22:46:33 +02:00
Antoine Pitrou e9bbe8b87b Issue #15480: Remove the deprecated and unused TYPE_INT64 code from marshal.
Initial patch by Daniel Riti.
2013-04-13 22:41:09 +02:00
Serhiy Storchaka e2cef885a2 Issue #16061: Speed up str.replace() for replacing 1-character strings. 2013-04-13 22:45:04 +03:00