]>
granicus.if.org Git - python/log
Serhiy Storchaka [Wed, 18 Mar 2015 16:03:40 +0000 (18:03 +0200)]
Restored backward compatibility of pickling http.cookies.Morsel. It was
broken after converting instance attributes to properies in issue #2211.
Victor Stinner [Wed, 18 Mar 2015 15:05:32 +0000 (16:05 +0100)]
Merge 3.4 (tracemalloc typo)
Victor Stinner [Wed, 18 Mar 2015 15:05:18 +0000 (16:05 +0100)]
_tracemalloc.c: Fix typo
Victor Stinner [Wed, 18 Mar 2015 14:04:34 +0000 (15:04 +0100)]
Fix compiler warning in mmapmodule.c (compare signed/unsigned integers)
Victor Stinner [Wed, 18 Mar 2015 14:02:06 +0000 (15:02 +0100)]
Initialize variables to prevent GCC warnings
Victor Stinner [Wed, 18 Mar 2015 14:01:44 +0000 (15:01 +0100)]
Fix compiler warning in dtoa.c
Victor Stinner [Wed, 18 Mar 2015 13:39:33 +0000 (14:39 +0100)]
Issue #22181: On Linux, os.urandom() now uses the new getrandom() syscall if
available, syscall introduced in the Linux kernel 3.17. It is more reliable
and more secure, because it avoids the need of a file descriptor and waits
until the kernel has enough entropy.
Victor Stinner [Wed, 18 Mar 2015 13:19:19 +0000 (14:19 +0100)]
Merge 3.4 (linecache doc)
Victor Stinner [Wed, 18 Mar 2015 13:16:50 +0000 (14:16 +0100)]
Issue #11726: Fix linecache example in the doc
Use a Python source file (linecache.__file__) instead of /etc/passwd.
Modify also linecache docstrings to clarify the linecache is written to cache
Python source files, not any text files.
Victor Stinner [Wed, 18 Mar 2015 13:14:52 +0000 (14:14 +0100)]
Merge 3.4 (linecache doc)
Victor Stinner [Wed, 18 Mar 2015 13:14:42 +0000 (14:14 +0100)]
Issue #11726: clarify linecache doc: linecache is written to cache Python
source files, even if "it works" with other text files encoded to UTF-8.
Victor Stinner [Wed, 18 Mar 2015 13:05:43 +0000 (14:05 +0100)]
Issue #12155: Fix queue doc example to join threads
Use None as a sentinel to stop a worker.
Victor Stinner [Wed, 18 Mar 2015 12:59:02 +0000 (13:59 +0100)]
Merge 3.4 (marshal doc)
Victor Stinner [Wed, 18 Mar 2015 12:58:49 +0000 (13:58 +0100)]
Issue #19428: Document that PyMarshal_ReadLongFromFile() and
PyMarshal_ReadShortFromFile() can fail.
Victor Stinner [Wed, 18 Mar 2015 12:56:25 +0000 (13:56 +0100)]
Issue #19428: Handle PyMarshal_Read*() errors in run_pyc_file()
Detect also earlier PyMarshal_Read*() errors in zipimport.
Victor Stinner [Wed, 18 Mar 2015 10:37:54 +0000 (11:37 +0100)]
Merge 3.4 (asyncio)
Victor Stinner [Wed, 18 Mar 2015 10:37:42 +0000 (11:37 +0100)]
Issue #23456: Add missing @coroutine decorators in asyncio
Victor Stinner [Wed, 18 Mar 2015 10:29:47 +0000 (11:29 +0100)]
Issue #23605: Fix os.walk(topdown=True), don't cache entry.is_symlink() because
the caller can replace the directory with a different file kind.
The bottom-up way, os.walk(topdown=False), still uses entry.is_symlink(), and
so can be faster than Python 3.4.
Victor Stinner [Wed, 18 Mar 2015 08:52:54 +0000 (09:52 +0100)]
Issue #23694: Handle EINTR in _Py_open() and _Py_fopen_obj()
Retry open()/fopen() if it fails with EINTR and the Python signal handler
doesn't raise an exception.
Serhiy Storchaka [Wed, 18 Mar 2015 08:59:57 +0000 (10:59 +0200)]
Issue #2211: Updated the implementation of the http.cookies.Morsel class.
Setting attributes key, value and coded_value directly now is deprecated.
update() and setdefault() now transform and check keys. Comparing for
equality now takes into account attributes key, value and coded_value.
copy() now returns a Morsel, not a dict. repr() now contains all attributes.
Optimized checking keys and quoting values. Added new tests.
Original patch by Demian Brecht.
Vinay Sajip [Wed, 18 Mar 2015 08:49:57 +0000 (08:49 +0000)]
Issue #23207: merged fix from 3.4.
Vinay Sajip [Wed, 18 Mar 2015 08:47:58 +0000 (08:47 +0000)]
Issue #23207: Improved kwarg validation.
Victor Stinner [Wed, 18 Mar 2015 00:39:23 +0000 (01:39 +0100)]
Issue #23694: Enhance _Py_fopen(), it now raises an exception on error
* If fopen() fails, OSError is raised with the original filename object.
* The GIL is now released while calling fopen()
Victor Stinner [Tue, 17 Mar 2015 23:22:14 +0000 (00:22 +0100)]
Issue #23694: Enhance _Py_open(), it now raises exceptions
* _Py_open() now raises exceptions on error. If open() fails, it raises an
OSError with the filename.
* _Py_open() now releases the GIL while calling open()
* Add _Py_open_noraise() when _Py_open() cannot be used because the GIL is not
held
Victor Stinner [Tue, 17 Mar 2015 21:53:27 +0000 (22:53 +0100)]
Issue #23644: Fix issues with C++ when compiling Python extensions
Disable completly pyatomic.h on C++, because <stdatomic.h> is not compatible with C++.
<pyatomic.h> is only needed by the optimized PyThreadState_GET() macro in
pystate.h. Instead, declare PyThreadState_GET() as an alias to
PyThreadState_Get(), as done for limited API.
Robert Collins [Tue, 17 Mar 2015 20:59:33 +0000 (09:59 +1300)]
Fix patch attribution for issue 18983.
Robert Collins [Tue, 17 Mar 2015 20:54:50 +0000 (09:54 +1300)]
Issue #18983: Allow selection of output units in timeit.
This allows manual selection of a specific unit such as usecs rather than the
use of a heuristic. This is intended to aid machine processing of timeit
output.
Patch by Serhiy Storchaka.
Victor Stinner [Tue, 17 Mar 2015 16:48:27 +0000 (17:48 +0100)]
Issue #23685: Fix usage of PyMODINIT_FUNC in _json, _scproxy, nis, pyexpat
_codecs_cn, _codecs_hk, _codecs_iso2022, _codecs_jp, _codecs_kr and _codecs_tw
modules.
pyexpat.c doesn't need to redeclare PyMODINIT_FUNC, it's already declared in
Include/pyport.h.
Ned Deily [Tue, 17 Mar 2015 11:32:30 +0000 (04:32 -0700)]
Issue #22585: null merge
Ned Deily [Tue, 17 Mar 2015 11:30:08 +0000 (04:30 -0700)]
Issue #22585: make URandomFDTests test case actually run
Victor Stinner [Tue, 17 Mar 2015 09:49:17 +0000 (10:49 +0100)]
Revert changeset
d927047b1d8eb87738676980a24930d053ba2150
Sorry, it was a mistake, the patch is still under review: issue #23646.
Berker Peksag [Tue, 17 Mar 2015 04:56:11 +0000 (06:56 +0200)]
Issue #23682: Delete Python 2.2 mention from distutils documentation.
Patch by Thomas Kluyver.
Berker Peksag [Tue, 17 Mar 2015 04:55:48 +0000 (06:55 +0200)]
Issue #23682: Delete Python 2.2 mention from distutils documentation.
Patch by Thomas Kluyver.
Benjamin Peterson [Mon, 16 Mar 2015 17:45:27 +0000 (12:45 -0500)]
merge 3.4 (#23679)
Benjamin Peterson [Mon, 16 Mar 2015 17:43:38 +0000 (12:43 -0500)]
versionchanged for rc4 removal (closes #23679)
Victor Stinner [Mon, 16 Mar 2015 17:03:06 +0000 (18:03 +0100)]
Issue #23680: Reduce risk of race condition in check_interrupted_write() of
test_io. Allocate the large data before scheduling an alarm in 1 second.
On very slow computer, the alarm rings sometimes during the memory allocation.
Victor Stinner [Mon, 16 Mar 2015 16:57:49 +0000 (17:57 +0100)]
Issue #23680: Reduce risk of race condition in check_interrupted_write_retry()
of test_io. Allocate the large data before scheduling an alarm in 1 second.
On very slow computer, the alarm rings sometimes during the memory allocation.
Victor Stinner [Mon, 16 Mar 2015 10:52:32 +0000 (11:52 +0100)]
Issue #23571: Restore removed assert(!PyErr_Occurred()); in
PyEval_CallObjectWithKeywords()
Sorry Serhiy, I missed your explanation because the review email was moved to
my Spam folder :-(
Serhiy Storchaka [Mon, 16 Mar 2015 06:31:38 +0000 (08:31 +0200)]
Use non-zero and non-last positions in error handler tests.
Serhiy Storchaka [Mon, 16 Mar 2015 06:29:47 +0000 (08:29 +0200)]
Use non-zero and non-last positions in error handler tests.
Robert Collins [Mon, 16 Mar 2015 02:30:31 +0000 (15:30 +1300)]
Issue #23585: make patchcheck will ensure the interpreter is built.
Robert Collins [Mon, 16 Mar 2015 02:27:16 +0000 (15:27 +1300)]
Issue #23631: Fix traceback.format_list when a traceback has been mutated.
Serhiy Storchaka [Sun, 15 Mar 2015 21:43:34 +0000 (23:43 +0200)]
Increased coverage of standard codec error handlers.
Serhiy Storchaka [Sun, 15 Mar 2015 21:41:37 +0000 (23:41 +0200)]
Increased coverage of standard codec error handlers.
Eli Bendersky [Sun, 15 Mar 2015 03:17:38 +0000 (20:17 -0700)]
Issue #23549: Clarify confusion in heapq doc - accessing the mininmal element
Merge 3.4
The current documentation only mentions heap[0] as the smallest element in the
beginning, and not in any of the methods' docs. There's no method to access the
minimal element without popping it, and the documentation of nsmallest is
confusing because it may suggest that min() is the way to go for n==1.
Eli Bendersky [Sun, 15 Mar 2015 03:14:23 +0000 (20:14 -0700)]
Issue #23549: Clarify confusion in heapq doc - accessing the mininmal element
The current documentation only mentions heap[0] as the smallest element in the
beginning, and not in any of the methods' docs. There's no method to access the
minimal element without popping it, and the documentation of nsmallest is
confusing because it may suggest that min() is the way to go for n==1.
Berker Peksag [Sat, 14 Mar 2015 23:57:38 +0000 (01:57 +0200)]
Issue #23568: Add rdivmod support to MagicMock() objects.
Patch by Håkan Lövdahl.
Berker Peksag [Sat, 14 Mar 2015 23:51:56 +0000 (01:51 +0200)]
Issue #23568: Add rdivmod support to MagicMock() objects.
Patch by Håkan Lövdahl.
Berker Peksag [Sat, 14 Mar 2015 23:18:47 +0000 (01:18 +0200)]
Issue #2052: Add charset parameter to HtmlDiff.make_file().
Serhiy Storchaka [Sat, 14 Mar 2015 19:34:25 +0000 (21:34 +0200)]
Fix minor docs markup errors.
Serhiy Storchaka [Sat, 14 Mar 2015 19:32:57 +0000 (21:32 +0200)]
Fix minor docs markup errors.
Steve Dower [Sat, 14 Mar 2015 18:48:44 +0000 (11:48 -0700)]
Issue #23606: Temporarily suppress test for CRT name.
Steve Dower [Sat, 14 Mar 2015 18:39:18 +0000 (11:39 -0700)]
Fixes incorrect use of GetLastError where errno should be used.
Steve Dower [Sat, 14 Mar 2015 18:38:27 +0000 (11:38 -0700)]
Fixes incorrect use of GetLastError where errno should be used.
Benjamin Peterson [Fri, 13 Mar 2015 21:21:29 +0000 (16:21 -0500)]
merge 3.4
Benjamin Peterson [Fri, 13 Mar 2015 21:21:23 +0000 (16:21 -0500)]
__getslice__ certainly won't appear in the output
Brett Cannon [Fri, 13 Mar 2015 16:50:16 +0000 (12:50 -0400)]
Merge 3.4
Brett Cannon [Fri, 13 Mar 2015 16:49:44 +0000 (12:49 -0400)]
Make the case to only support Python 2.7 when supporting 2/3 simultaneously
Brett Cannon [Fri, 13 Mar 2015 15:13:20 +0000 (11:13 -0400)]
Add some periods to the ends of a couple comments
Brett Cannon [Fri, 13 Mar 2015 14:42:08 +0000 (10:42 -0400)]
Strip trailing whitespace
Brett Cannon [Fri, 13 Mar 2015 14:40:49 +0000 (10:40 -0400)]
Issue #23491: Implement PEP 441: Improving Python Zip Application Support
Thanks to Paul Moore for the PEP and implementation.
Victor Stinner [Fri, 13 Mar 2015 10:01:30 +0000 (11:01 +0100)]
Issue #23566: Skip "fd" tests of test_faulthandler on Windows
subprocess doesn't support pass_fds on Windows.
Serhiy Storchaka [Fri, 13 Mar 2015 07:05:01 +0000 (09:05 +0200)]
Issue #23138: Fixed parsing cookies with absent keys or values in cookiejar.
Patch by Demian Brecht.
Serhiy Storchaka [Fri, 13 Mar 2015 06:25:26 +0000 (08:25 +0200)]
Issue #23051: multiprocessing.Pool methods imap() and imap_unordered() now
handle exceptions raised by an iterator. Patch by Alon Diamant and Davin
Potts.
Benjamin Peterson [Fri, 13 Mar 2015 03:41:06 +0000 (22:41 -0500)]
use the meth role for ZipFile.open
Berker Peksag [Fri, 13 Mar 2015 00:55:45 +0000 (02:55 +0200)]
Issue #23081: Document that PySequence_List also accepts iterables.
Patch by Lars Buitinck.
Berker Peksag [Fri, 13 Mar 2015 00:29:54 +0000 (02:29 +0200)]
Issue #22154: Add an example to show context management protocol support of ZipFile.open().
Patch by Mike Short.
Serhiy Storchaka [Thu, 12 Mar 2015 19:56:08 +0000 (21:56 +0200)]
Issue #23641: Cleaned out legacy dunder names from tests and docs.
Fixed 2 to 3 porting bug in pynche.ColorDB.
Berker Peksag [Thu, 12 Mar 2015 16:50:49 +0000 (18:50 +0200)]
Issue #20617: Remove unused import in test_ssl.
Patch by Mark Lawrence.
Victor Stinner [Thu, 12 Mar 2015 15:19:01 +0000 (16:19 +0100)]
test
Serhiy Storchaka [Fri, 13 Mar 2015 07:09:35 +0000 (09:09 +0200)]
Issue #23138: Fixed parsing cookies with absent keys or values in cookiejar.
Patch by Demian Brecht.
Serhiy Storchaka [Fri, 13 Mar 2015 06:30:33 +0000 (08:30 +0200)]
Issue #23051: multiprocessing.Pool methods imap() and imap_unordered() now
handle exceptions raised by an iterator. Patch by Alon Diamant and Davin
Potts.
Benjamin Peterson [Fri, 13 Mar 2015 03:41:14 +0000 (22:41 -0500)]
merge 3.4
Berker Peksag [Fri, 13 Mar 2015 00:56:12 +0000 (02:56 +0200)]
Issue #23081: Document that PySequence_List also accepts iterables.
Patch by Lars Buitinck.
Berker Peksag [Fri, 13 Mar 2015 00:30:17 +0000 (02:30 +0200)]
Issue #22154: Add an example to show context management protocol support of ZipFile.open().
Patch by Mike Short.
Serhiy Storchaka [Thu, 12 Mar 2015 20:01:30 +0000 (22:01 +0200)]
Issue #23641: Cleaned out legacy dunder names from tests and docs.
Fixed 2 to 3 porting bug in pynche.ColorDB.
Added few tests for __truediv__, __floordiv__ and __matmul__.
Berker Peksag [Thu, 12 Mar 2015 18:56:45 +0000 (20:56 +0200)]
Add versionadded directives for the matmul operator.
Berker Peksag [Thu, 12 Mar 2015 18:47:41 +0000 (20:47 +0200)]
Issue #23651: Fix typo in allow_abbrev docs.
Noticed by Nathan West.
Berker Peksag [Thu, 12 Mar 2015 18:42:48 +0000 (20:42 +0200)]
Issue #23581: Add matmul support to MagicMock.
Patch by Håkan Lövdahl.
Berker Peksag [Thu, 12 Mar 2015 16:51:16 +0000 (18:51 +0200)]
Issue #20617: Remove unused import in test_ssl.
Patch by Mark Lawrence.
Victor Stinner [Thu, 12 Mar 2015 15:04:41 +0000 (16:04 +0100)]
Issue #23644, #22038: Move #include <stdatomic.c> inside the extern "C" { ... }
block in pyatomic.h
Victor Stinner [Thu, 12 Mar 2015 14:32:03 +0000 (15:32 +0100)]
Issue #23566: enable(), register(), dump_traceback() and dump_traceback_later()
functions of faulthandler now accept file descriptors. Patch by Wei Wu.
Victor Stinner [Thu, 12 Mar 2015 09:32:20 +0000 (10:32 +0100)]
Merge 3.4 (test_os)
Victor Stinner [Thu, 12 Mar 2015 09:28:24 +0000 (10:28 +0100)]
Issue #23605: Refactor os.walk() tests to also run them on os.fwalk()
Serhiy Storchaka [Thu, 12 Mar 2015 09:15:15 +0000 (11:15 +0200)]
Issue #22928: Disabled HTTP header injections in http.client.
Original patch by Demian Brecht.
Serhiy Storchaka [Thu, 12 Mar 2015 09:13:36 +0000 (11:13 +0200)]
Issue #22928: Disabled HTTP header injections in http.client.
Original patch by Demian Brecht.
Victor Stinner [Thu, 12 Mar 2015 08:12:48 +0000 (09:12 +0100)]
Issue #23605: os.walk() doesn't need to call entry.is_symlink() if followlinks
is True
Serhiy Storchaka [Wed, 11 Mar 2015 16:22:29 +0000 (18:22 +0200)]
Issue #23192: Fixed generator lambdas. Patch by Bruno Cauet.
Serhiy Storchaka [Wed, 11 Mar 2015 16:20:35 +0000 (18:20 +0200)]
Issue #23192: Fixed generator lambdas. Patch by Bruno Cauet.
Ethan Furman [Wed, 11 Mar 2015 15:43:12 +0000 (08:43 -0700)]
Close issue23486: performance boost for enum member lookup
Serhiy Storchaka [Wed, 11 Mar 2015 15:31:33 +0000 (17:31 +0200)]
Issue #23615: Modules bz2, tarfile and tokenize now can be reloaded with
imp.reload(). Patch by Thomas Kluyver.
Serhiy Storchaka [Wed, 11 Mar 2015 15:18:03 +0000 (17:18 +0200)]
Issue #23615: Modules bz2, tarfile and tokenize now can be reloaded with
imp.reload(). Patch by Thomas Kluyver.
Ethan Furman [Wed, 11 Mar 2015 15:17:00 +0000 (08:17 -0700)]
Close issue23467: add %r compatibility to bytes and bytearray
Steve Dower [Wed, 11 Mar 2015 02:40:37 +0000 (19:40 -0700)]
Removes unused format string insertion in launcher.c.
Steve Dower [Wed, 11 Mar 2015 02:38:25 +0000 (19:38 -0700)]
Removes unused format string insertion in launcher.c.
Antoine Pitrou [Tue, 10 Mar 2015 21:35:24 +0000 (22:35 +0100)]
Issue #23629: Fix the default __sizeof__ implementation for variable-sized objects.
Antoine Pitrou [Tue, 10 Mar 2015 21:32:00 +0000 (22:32 +0100)]
Issue #23629: Fix the default __sizeof__ implementation for variable-sized objects.
Steve Dower [Tue, 10 Mar 2015 20:20:21 +0000 (13:20 -0700)]
Issue #22028: Ensure mimetypes will not open registry keys with embedded nulls
Steve Dower [Tue, 10 Mar 2015 20:17:21 +0000 (13:17 -0700)]
Issue #22028: Ensure mimetypes will not open registry keys with embedded nulls
Steve Dower [Tue, 10 Mar 2015 20:15:40 +0000 (13:15 -0700)]
Adds note about installed debug binaries.