]>
granicus.if.org Git - python/log
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.
Ezio Melotti [Fri, 12 Apr 2013 12:42:06 +0000 (15:42 +0300)]
#6696: add documentation for the Profile objects, and improve profile/cProfile docs. Patch by Tom Pinckney.
Ezio Melotti [Fri, 12 Apr 2013 11:14:22 +0000 (14:14 +0300)]
#17692: merge with 3.3.
Ezio Melotti [Fri, 12 Apr 2013 11:13:47 +0000 (14:13 +0300)]
#17692: test_sqlite now works with unittest test discovery. Patch by Zachary Ware.
Roger Serwy [Fri, 12 Apr 2013 00:18:22 +0000 (19:18 -0500)]
#17585: merge with 3.3.
Roger Serwy [Fri, 12 Apr 2013 00:16:44 +0000 (19:16 -0500)]
#17585: Fixed IDLE regression. Now closes when using exit() or quit().
R David Murray [Thu, 11 Apr 2013 21:45:32 +0000 (17:45 -0400)]
#17699: Fix the new getpass test failures on windows.
Patch by Zachary Ware.
Victor Stinner [Thu, 11 Apr 2013 20:41:11 +0000 (22:41 +0200)]
Issue #13056: Reenable test_multibytecodec.Test_StreamWriter tests
Victor Stinner [Thu, 11 Apr 2013 20:09:04 +0000 (22:09 +0200)]
Close #17693: Rewrite CJK decoders to use the _PyUnicodeWriter API instead of
the legacy Py_UNICODE API.
Add also a new _PyUnicodeWriter_WriteChar() function.
Victor Stinner [Thu, 11 Apr 2013 19:37:45 +0000 (21:37 +0200)]
python-gdb.py: Replace invalid Unicode character with U+FFFD to be able to
display invalid strings. Such strings can be found while Python is creating a
new string, in a text decoder for example, when Python is compiled in debug
mode.
Antoine Pitrou [Thu, 11 Apr 2013 19:02:20 +0000 (21:02 +0200)]
Fix supernumerary 's' in sys._debugmallocstats() output.
Antoine Pitrou [Thu, 11 Apr 2013 19:01:40 +0000 (21:01 +0200)]
Fix supernumerary 's' in sys._debugmallocstats() output.
Antoine Pitrou [Thu, 11 Apr 2013 18:48:42 +0000 (20:48 +0200)]
Fix a crash when setting a servername callback on a SSL server socket and the client doesn't send a server name.
Patch by Kazuhiro Yoshida.
(originally issue #8109)
Ezio Melotti [Thu, 11 Apr 2013 17:30:48 +0000 (20:30 +0300)]
#17690: merge with 3.3.
Ezio Melotti [Thu, 11 Apr 2013 17:29:42 +0000 (20:29 +0300)]
#17690: test_time now works with unittest test discovery. Patch by Zachary Ware.
Georg Brandl [Thu, 11 Apr 2013 14:10:13 +0000 (16:10 +0200)]
Fix invalid markup.
R David Murray [Thu, 11 Apr 2013 12:58:11 +0000 (08:58 -0400)]
Merge #14971: Use class method name, not function.__name__, during unittest discovery.
R David Murray [Thu, 11 Apr 2013 12:55:45 +0000 (08:55 -0400)]
#14971: Use class method name, not function.__name__, during unittest discovery.
Senthil Kumaran [Thu, 11 Apr 2013 03:56:32 +0000 (20:56 -0700)]
null merge
Senthil Kumaran [Thu, 11 Apr 2013 03:55:58 +0000 (20:55 -0700)]
normalize whitespace
Senthil Kumaran [Thu, 11 Apr 2013 03:54:23 +0000 (20:54 -0700)]
normalize whitespace. caught by hook
Senthil Kumaran [Thu, 11 Apr 2013 03:53:12 +0000 (20:53 -0700)]
merge from 3.3
#5609 - test_urllib coverage for url2pathname and pathname2url. Patch
contribution by Thomas Fenzl & Maksim Kozyarchuk
Senthil Kumaran [Thu, 11 Apr 2013 03:51:19 +0000 (20:51 -0700)]
#5609 - test_urllib coverage for url2pathname and pathname2url. Patch
contribution by Thomas Fenzl & Maksim Kozyarchuk
Benjamin Peterson [Wed, 10 Apr 2013 21:01:38 +0000 (17:01 -0400)]
merge 3.3 (#17669)
Benjamin Peterson [Wed, 10 Apr 2013 21:00:56 +0000 (17:00 -0400)]
don't run frame if it has no stack (closes #17669)
Ezio Melotti [Wed, 10 Apr 2013 16:35:31 +0000 (19:35 +0300)]
Merge heads.
Ezio Melotti [Wed, 10 Apr 2013 16:34:05 +0000 (19:34 +0300)]
#12820: merge with 3.3.
R David Murray [Wed, 10 Apr 2013 16:31:43 +0000 (12:31 -0400)]
#17487: wave.getparams now returns a namedtuple.
Patch by Claudiu Popa.
Ezio Melotti [Wed, 10 Apr 2013 16:30:11 +0000 (19:30 +0300)]
#12820: add tests for the xml.dom.minicompat module. Patch by John Chandler and Phil Connell.
Ezio Melotti [Wed, 10 Apr 2013 15:01:22 +0000 (18:01 +0300)]
#17635: merge with 3.3.
Ezio Melotti [Wed, 10 Apr 2013 14:59:20 +0000 (17:59 +0300)]
#17635: fix wrong function name in multiprocessing docs.
Giampaolo Rodola' [Wed, 10 Apr 2013 13:49:47 +0000 (15:49 +0200)]
Fix issue #17675: make socket repr() provide local and remote addresses (if any).
Victor Stinner [Tue, 9 Apr 2013 22:27:23 +0000 (00:27 +0200)]
Close #14439: Python now prints the traceback on runpy failure at startup.
Victor Stinner [Tue, 9 Apr 2013 21:53:26 +0000 (23:53 +0200)]
Issue #17615: On Windows (VS2010), Performances of wmemcmp() to compare Unicode
strings are not convincing. For UCS2 (16-bit wchar_t type), use a dummy loop
instead of wmemcmp(). The dummy loop is as fast, or a little bit faster.
wchar_t is only 16-bit long on Windows. wmemcmp() is still used for 32-bit
wchar_t.
Brett Cannon [Tue, 9 Apr 2013 21:03:27 +0000 (17:03 -0400)]
merge
Brett Cannon [Tue, 9 Apr 2013 21:03:10 +0000 (17:03 -0400)]
What's new entry for issue #17093
Brett Cannon [Tue, 9 Apr 2013 20:59:39 +0000 (16:59 -0400)]
Issue #17093,17566,17567: Methods from classes in importlib.abc now raise/return
the default exception/value when called instead of raising/returning
NotimplementedError/NotImplemented (except where appropriate).
This should allow for the ABCs to act as the bottom/end of the MRO with expected
default results.
As part of this work, also make importlib.abc.Loader.module_repr()
optional instead of an abstractmethod.
Victor Stinner [Tue, 9 Apr 2013 20:52:48 +0000 (22:52 +0200)]
replace(): only call PyUnicode_DATA(u) once
Victor Stinner [Tue, 9 Apr 2013 20:39:24 +0000 (22:39 +0200)]
Write super-fast version of str.strip(), str.lstrip() and str.rstrip() for pure ASCII
Victor Stinner [Tue, 9 Apr 2013 20:38:52 +0000 (22:38 +0200)]
Don't calls macros in PyUnicode_WRITE() parameters
PyUnicode_WRITE() expands some parameters twice or more.
Victor Stinner [Tue, 9 Apr 2013 20:21:08 +0000 (22:21 +0200)]
Fix do_strip(): don't call PyUnicode_READ() in Py_UNICODE_ISSPACE() to not call
it twice
Victor Stinner [Tue, 9 Apr 2013 20:19:21 +0000 (22:19 +0200)]
Fix _PyUnicode_XStrip()
Inline the BLOOM_MEMBER() to only call PyUnicode_READ() only once (per loop
iteration). Store also the length of the seperator in a variable to avoid calls
to PyUnicode_GET_LENGTH().
Victor Stinner [Tue, 9 Apr 2013 20:13:33 +0000 (22:13 +0200)]
Optimize PyUnicode_DecodeCharmap()
Avoid expensive PyUnicode_READ() and PyUnicode_WRITE(), manipulate pointers
instead.
Victor Stinner [Tue, 9 Apr 2013 19:53:54 +0000 (21:53 +0200)]
Optimize make_bloom_mask(), used by str.strip(), str.lstrip() and str.rstrip()
Write specialized functions per Unicode kind to avoid the expensive
PyUnicode_READ() macro.
Victor Stinner [Tue, 9 Apr 2013 19:48:24 +0000 (21:48 +0200)]
Use PyUnicode_READ() instead of PyUnicode_READ_CHAR()
"PyUnicode_READ_CHAR() is less efficient than PyUnicode_READ() because it calls
PyUnicode_KIND() and might call it twice." according to its documentation.
Victor Stinner [Tue, 9 Apr 2013 19:53:09 +0000 (21:53 +0200)]
Add fast-path in PyUnicode_DecodeCharmap() for pure 8 bit encodings:
cp037, cp500 and iso8859_1 codecs
Giampaolo Rodola' [Tue, 9 Apr 2013 15:23:27 +0000 (17:23 +0200)]
merge heads
Giampaolo Rodola' [Tue, 9 Apr 2013 15:21:25 +0000 (17:21 +0200)]
Do not raise exception on close() on account of socket attribute still being None:
>>> import asyncore
>>> d = asyncore.dispatcher()
>>> d.close()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.4/asyncore.py", line 401, in close
self.socket.close()
AttributeError: 'NoneType' object has no attribute 'close'
>>>
Senthil Kumaran [Tue, 9 Apr 2013 14:11:07 +0000 (07:11 -0700)]
#17678: Remove the use of a deprecated method http/cookiejar.py. Changing the
usage of get_origin_req_host() to origin_req_host.
Patch by Wei-Cheng Pan
Senthil Kumaran [Tue, 9 Apr 2013 14:07:59 +0000 (07:07 -0700)]
#17678: Fix DeprecationWarning in the http/cookiejar.py by changing the usage
of get_origin_req_host() to origin_req_host.
Patch by Wei-Cheng Pan
Senthil Kumaran [Tue, 9 Apr 2013 13:01:17 +0000 (06:01 -0700)]
null merge
Senthil Kumaran [Tue, 9 Apr 2013 13:00:16 +0000 (06:00 -0700)]
#17648 - convert test_urllib2.py doctests to unittests