]>
granicus.if.org Git - python/log
Victor Stinner [Sun, 14 Apr 2013 17:17:42 +0000 (19:17 +0200)]
Minor change: fix character in do_strip() for the ASCII case
Victor Stinner [Sun, 14 Apr 2013 17:13:03 +0000 (19:13 +0200)]
Cleanup PyUnicode_Append()
* Check also that right is a Unicode object
* call directly resize_compact() instead of unicode_resize() for a more
explicit error handling, and to avoid testing some properties twice
(ex: unicode_modifiable())
Victor Stinner [Sun, 14 Apr 2013 16:56:46 +0000 (18:56 +0200)]
PyUnicode_Join(): move use_memcpy test out of the loop to cleanup and optimize the code
Victor Stinner [Sun, 14 Apr 2013 16:45:39 +0000 (18:45 +0200)]
Optimize repr(str): use _PyUnicode_FastCopyCharacters() when no character is escaped
Victor Stinner [Sun, 14 Apr 2013 16:44:10 +0000 (18:44 +0200)]
Optimize ascii(str): don't encode/decode repr if repr is already ASCII
Victor Stinner [Sun, 14 Apr 2013 16:11:41 +0000 (18:11 +0200)]
Issue #17693: Fix memory/reference leaks
R David Murray [Sun, 14 Apr 2013 17:03:14 +0000 (13:03 -0400)]
Merge #17341: Include name in re error message about invalid group name.
Patch by Jason Michalski.
R David Murray [Sun, 14 Apr 2013 17:00:54 +0000 (13:00 -0400)]
#17341: Include name in re error message about invalid group name.
Patch by Jason Michalski.
Brett Cannon [Sun, 14 Apr 2013 16:51:36 +0000 (12:51 -0400)]
add a newline
Brett Cannon [Sun, 14 Apr 2013 16:50:51 +0000 (12:50 -0400)]
merge
Brett Cannon [Sun, 14 Apr 2013 16:48:15 +0000 (12:48 -0400)]
Issue #17244: Don't mask exceptions raised during the creation of
bytecode files in py_compile.
Thanks to Arfrever Frehtes Taifersar Arahesis for the bug report.
Serhiy Storchaka [Sun, 14 Apr 2013 15:57:24 +0000 (18:57 +0300)]
Issue #17221: Resort Misc/NEWS.
Serhiy Storchaka [Sun, 14 Apr 2013 15:53:39 +0000 (18:53 +0300)]
Issue #17221: Resort Misc/NEWS.
Victor Stinner [Sun, 14 Apr 2013 14:43:38 +0000 (16:43 +0200)]
(Merge 3.3) Issue #17702: use assertRaises() for the unit test
Victor Stinner [Sun, 14 Apr 2013 14:43:03 +0000 (16:43 +0200)]
Issue #17702: use assertRaises() for the unit test
Victor Stinner [Sun, 14 Apr 2013 14:38:35 +0000 (16:38 +0200)]
(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).
Victor Stinner [Sun, 14 Apr 2013 14:35:04 +0000 (16:35 +0200)]
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).
Victor Stinner [Sun, 14 Apr 2013 14:29:09 +0000 (16:29 +0200)]
stringlib: remove unused STRINGLIB_RESIZE macro
Nick Coghlan [Sun, 14 Apr 2013 13:01:11 +0000 (23:01 +1000)]
Merge fix for #16163 from 3.3
Nick Coghlan [Sun, 14 Apr 2013 12:30:42 +0000 (22:30 +1000)]
Close issue #16163: handle submodules in pkgutil.iter_importers
Vinay Sajip [Sun, 14 Apr 2013 11:25:25 +0000 (12:25 +0100)]
Issue #17713: additional tweak to test.
Vinay Sajip [Sun, 14 Apr 2013 11:20:46 +0000 (12:20 +0100)]
Closes #17713: Fixed bug in test_compute_rollover_weekly_attime.
R David Murray [Sun, 14 Apr 2013 10:46:35 +0000 (06:46 -0400)]
#2118: IOError is deprecated, use OSError.
Alexandre Vassalotti [Sun, 14 Apr 2013 10:44:47 +0000 (03:44 -0700)]
Merge 3.3
Serhiy Storchaka [Sun, 14 Apr 2013 10:37:02 +0000 (13:37 +0300)]
Closes #16551. Cleanup pickle.py.
Alexandre Vassalotti [Sun, 14 Apr 2013 10:31:40 +0000 (03:31 -0700)]
Merge heads.
Alexandre Vassalotti [Sun, 14 Apr 2013 10:30:35 +0000 (03:30 -0700)]
Issue #16550: Update the opcode descriptions of pickletools to use unsigned
integers where appropriate. Initial patch by Serhiy Storchaka.
Georg Brandl [Sun, 14 Apr 2013 10:03:01 +0000 (12:03 +0200)]
merge with 3.3
Georg Brandl [Sun, 14 Apr 2013 10:02:43 +0000 (12:02 +0200)]
Fix example ignoring ".svn" directories in compileall.
Georg Brandl [Sun, 14 Apr 2013 09:59:19 +0000 (11:59 +0200)]
merge with 3.3
Georg Brandl [Sun, 14 Apr 2013 09:58:54 +0000 (11:58 +0200)]
The Integral class does not contain implementations for the bit-shifting operations. (See #3056.)
Georg Brandl [Sun, 14 Apr 2013 09:55:44 +0000 (11:55 +0200)]
merge with 3.3
Georg Brandl [Sun, 14 Apr 2013 09:47:46 +0000 (11:47 +0200)]
Clarify that the function *definition* creates the function and the binding in the module globals.
Georg Brandl [Sun, 14 Apr 2013 09:40:27 +0000 (11:40 +0200)]
merge with 3.3
Georg Brandl [Sun, 14 Apr 2013 09:40:00 +0000 (11:40 +0200)]
Closes #14462: allow any valid Python identifier in sre group names, as documented.
Alexandre Vassalotti [Sun, 14 Apr 2013 09:25:10 +0000 (02:25 -0700)]
Style cleanups for pickle.py and _pickle.
Georg Brandl [Sun, 14 Apr 2013 09:16:46 +0000 (11:16 +0200)]
merge with 3.3
Georg Brandl [Sun, 14 Apr 2013 09:12:16 +0000 (11:12 +0200)]
Closes #13638: document PyErr_SetFromErrnoWithFilenameObject,
PyErr_SetFromWindowsErrWithFilenameObject, and
PyErr_SetExcFromWindowsErrWithFilenameObject.
Note that PyErr_SetExcFromWindowsErrWithFilenameObjectAndSomeOtherParametersSoThatTheNameGetsSoLongThatNobodyIsEverGonnaUseThisStrangeFunctionForAnything is still undocumented.
Alexandre Vassalotti [Sun, 14 Apr 2013 09:11:16 +0000 (02:11 -0700)]
Merge 3.3
Alexandre Vassalotti [Sun, 14 Apr 2013 09:10:14 +0000 (02:10 -0700)]
Merge heads.
Georg Brandl [Sun, 14 Apr 2013 08:59:17 +0000 (10:59 +0200)]
merge with 3.3
Georg Brandl [Sun, 14 Apr 2013 08:59:04 +0000 (10:59 +0200)]
bind('') does not do the same as bind('localhost')
Georg Brandl [Sun, 14 Apr 2013 08:50:13 +0000 (10:50 +0200)]
merge with 3.3
Georg Brandl [Sun, 14 Apr 2013 08:50:05 +0000 (10:50 +0200)]
Update code examples using collections.abc classes.
Georg Brandl [Sun, 14 Apr 2013 08:31:24 +0000 (10:31 +0200)]
merge with 3.3
Georg Brandl [Sun, 14 Apr 2013 08:31:06 +0000 (10:31 +0200)]
Closes #17726: small clarification in design FAQ.
Alexandre Vassalotti [Sun, 14 Apr 2013 08:28:01 +0000 (01:28 -0700)]
Clean up error messages raised by save_reduce in _pickle.
Georg Brandl [Sun, 14 Apr 2013 08:19:31 +0000 (10:19 +0200)]
merge with 3.3
Georg Brandl [Sun, 14 Apr 2013 08:17:35 +0000 (10:17 +0200)]
Update using/mac documentation which was still on 2.5.
Georg Brandl [Sun, 14 Apr 2013 08:13:50 +0000 (10:13 +0200)]
merge with 3.3
Georg Brandl [Sun, 14 Apr 2013 08:13:42 +0000 (10:13 +0200)]
Clarify point in name mangling doc.
Alexandre Vassalotti [Sun, 14 Apr 2013 07:58:28 +0000 (00:58 -0700)]
Merge 3.3
Alexandre Vassalotti [Sun, 14 Apr 2013 07:56:39 +0000 (00:56 -0700)]
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.
Meador Inge [Sun, 14 Apr 2013 01:59:03 +0000 (20:59 -0500)]
Merge heads.
Meador Inge [Sun, 14 Apr 2013 01:51:04 +0000 (20:51 -0500)]
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.
Meador Inge [Sun, 14 Apr 2013 01:29:49 +0000 (20:29 -0500)]
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.
Victor Stinner [Sun, 14 Apr 2013 00:35:33 +0000 (02:35 +0200)]
Add _PyUnicodeWriter_WriteCharInline()
Victor Stinner [Sun, 14 Apr 2013 00:06:32 +0000 (02:06 +0200)]
Issue #17693: CJK encoders now use the new Unicode API (PEP 393)
Benjamin Peterson [Sat, 13 Apr 2013 21:20:36 +0000 (17:20 -0400)]
remove pointless change
Benjamin Peterson [Sat, 13 Apr 2013 21:19:01 +0000 (17:19 -0400)]
properly lookup the __round__ special method (closes #17722)
Antoine Pitrou [Sat, 13 Apr 2013 20:46:33 +0000 (22:46 +0200)]
Fix misindent. This would test half less possibilities.
Antoine Pitrou [Sat, 13 Apr 2013 20:41:09 +0000 (22:41 +0200)]
Issue #15480: Remove the deprecated and unused TYPE_INT64 code from marshal.
Initial patch by Daniel Riti.
Serhiy Storchaka [Sat, 13 Apr 2013 19:45:04 +0000 (22:45 +0300)]
Issue #16061: Speed up str.replace() for replacing 1-character strings.
R David Murray [Sat, 13 Apr 2013 19:29:22 +0000 (15:29 -0400)]
#17719: fix incorrect version number in deprecation doc.
Patch by Kent Johnson.
R David Murray [Sat, 13 Apr 2013 18:49:48 +0000 (14:49 -0400)]
#2118: Make SMTPException a subclass of IOError.
Initial patch by Ned Jackson Lovely.
R David Murray [Sat, 13 Apr 2013 18:42:36 +0000 (14:42 -0400)]
Merge #2118: clarify smtplib exception documentation.
R David Murray [Sat, 13 Apr 2013 18:40:51 +0000 (14:40 -0400)]
Reflow paragraph.
R David Murray [Sat, 13 Apr 2013 18:40:33 +0000 (14:40 -0400)]
#2118: clarify smtplib exception documentation.
Serhiy Storchaka [Sat, 13 Apr 2013 18:16:40 +0000 (21:16 +0300)]
Issue #17016: Get rid of possible pointer wraparounds and integer overflows
in the re module. Patch by Nickolai Zeldovich.
Serhiy Storchaka [Sat, 13 Apr 2013 18:15:47 +0000 (21:15 +0300)]
Issue #17016: Get rid of possible pointer wraparounds and integer overflows
in the re module. Patch by Nickolai Zeldovich.
Ezio Melotti [Sat, 13 Apr 2013 17:12:53 +0000 (20:12 +0300)]
#17571: merge with 3.3.
Ezio Melotti [Sat, 13 Apr 2013 17:12:38 +0000 (20:12 +0300)]
#17571: remove broken links in datetime.py docstring.
Ezio Melotti [Sat, 13 Apr 2013 17:07:58 +0000 (20:07 +0300)]
#17686: merge with 3.3.
Ezio Melotti [Sat, 13 Apr 2013 17:07:42 +0000 (20:07 +0300)]
#17686: fix broken link in Doc/using/unix.rst. Patch by Dan Riti.
Mark Dickinson [Sat, 13 Apr 2013 16:46:04 +0000 (17:46 +0100)]
Issue #17715: Merge fix from 3.3.
Mark Dickinson [Sat, 13 Apr 2013 16:44:44 +0000 (17:44 +0100)]
Issue #17715: Add missing NULL Check to PyNumber_Long.
Vinay Sajip [Sat, 13 Apr 2013 16:35:14 +0000 (17:35 +0100)]
Issue #17713: Test temporarily skipped while failure investigated.
Mark Dickinson [Sat, 13 Apr 2013 15:09:52 +0000 (16:09 +0100)]
Merge heads.
Mark Dickinson [Sat, 13 Apr 2013 15:09:18 +0000 (16:09 +0100)]
Fix incorrect indentation on 'versionadded' for weakref.ref.__callback__.
Andrew Svetlov [Sat, 13 Apr 2013 15:04:19 +0000 (18:04 +0300)]
Revert changes for #13355 by request from Raymond Hettinger
Andrew Svetlov [Sat, 13 Apr 2013 15:00:04 +0000 (18:00 +0300)]
Revert changes for #13355 by request from Raymond Hettinger
Mark Dickinson [Sat, 13 Apr 2013 14:45:44 +0000 (15:45 +0100)]
Issue #17643: Add __callback__ attribute to weakref.ref.
Mark Dickinson [Sat, 13 Apr 2013 14:30:16 +0000 (15:30 +0100)]
Issue #16447: Merge fix from 3.3.
Mark Dickinson [Sat, 13 Apr 2013 14:26:58 +0000 (15:26 +0100)]
Issue #16447: Fix potential segfault when setting __name__ on a class.
Andrew Svetlov [Fri, 12 Apr 2013 20:30:59 +0000 (23:30 +0300)]
Fix whitespaces
Andrew Svetlov [Fri, 12 Apr 2013 20:30:41 +0000 (23:30 +0300)]
Fix whitespaces
Andrew Svetlov [Fri, 12 Apr 2013 20:27:37 +0000 (23:27 +0300)]
Issue #13355: Raise ValueError on random.triangular call with invalid params.
Initial patch by Yuriy Senko.
Andrew Svetlov [Fri, 12 Apr 2013 20:21:01 +0000 (23:21 +0300)]
Issue #13355: Raise ValueError on random.triangular call with invalid params.
Initial patch by Yuriy Senko.
Andrew Svetlov [Fri, 12 Apr 2013 19:50:42 +0000 (22:50 +0300)]
Issue #16658: add missing return to HTTPConnection.send().
Patch by Jeff Knupp
Andrew Svetlov [Fri, 12 Apr 2013 19:49:19 +0000 (22:49 +0300)]
Issue #16658: add missing return to HTTPConnection.send().
Patch by Jeff Knupp
Giampaolo Rodola' [Fri, 12 Apr 2013 16:28:15 +0000 (18:28 +0200)]
attempt to fix bb failure as per http://bugs.python.org/issue17675#msg186595
Ezio Melotti [Fri, 12 Apr 2013 16:19:45 +0000 (19:19 +0300)]
#17653: merge with 3.3.
Ezio Melotti [Fri, 12 Apr 2013 16:19:21 +0000 (19:19 +0300)]
#17653: fix typo in socketserver docs. Patch by Tshepang Lekhonkhobe.
Vinay Sajip [Fri, 12 Apr 2013 16:04:23 +0000 (17:04 +0100)]
Closed #9556: Allowed specifying a time-of-day for a TimedRotatingFileHandler to rotate.
Ezio Melotti [Fri, 12 Apr 2013 13:25:41 +0000 (16:25 +0300)]
Null merge.
Ezio Melotti [Fri, 12 Apr 2013 13:24:12 +0000 (16:24 +0300)]
Merge heads.
Ezio Melotti [Fri, 12 Apr 2013 13:23:24 +0000 (16:23 +0300)]
Merge heads.
Andrew Svetlov [Fri, 12 Apr 2013 13:09:00 +0000 (16:09 +0300)]
#17688: fix declaration for richcmp example in the docs.
Thanks to Daniel Mullner
Andrew Svetlov [Fri, 12 Apr 2013 13:08:40 +0000 (16:08 +0300)]
#17688: fix declaration for richcmp example in the docs.
Thanks to Daniel Mullner
Ezio Melotti [Fri, 12 Apr 2013 12:44:37 +0000 (15:44 +0300)]
#6696: merge with 3.3.