]>
granicus.if.org Git - python/log
Martin Panter [Sat, 14 Jan 2017 06:30:37 +0000 (06:30 +0000)]
Issue #1621: Overflow should not be possible in listextend()
Martin Panter [Sat, 14 Jan 2017 06:29:32 +0000 (06:29 +0000)]
Issue #29145: Merge test from 3.6
Martin Panter [Sat, 14 Jan 2017 06:26:51 +0000 (06:26 +0000)]
Merge tests from 3.5
Vinay Sajip [Fri, 13 Jan 2017 19:18:33 +0000 (19:18 +0000)]
Merged upstream changes.
Vinay Sajip [Fri, 13 Jan 2017 19:17:51 +0000 (19:17 +0000)]
Closed #29261: merged fix from 3.6.
Vinay Sajip [Fri, 13 Jan 2017 19:17:03 +0000 (19:17 +0000)]
Fixes #29261: merged fix from 3.5.
Serhiy Storchaka [Fri, 13 Jan 2017 19:14:40 +0000 (21:14 +0200)]
Document Python versions in which the removed features were deprecated.
Vinay Sajip [Fri, 13 Jan 2017 19:08:47 +0000 (19:08 +0000)]
Fixes #29261: added venv/scripts/common to LIBSUBDIRS.
Serhiy Storchaka [Fri, 13 Jan 2017 18:55:05 +0000 (20:55 +0200)]
Issue #29197: Removed deprecated function ntpath.splitunc().
Serhiy Storchaka [Fri, 13 Jan 2017 11:25:24 +0000 (13:25 +0200)]
Issue #29210: Removed support of deprecated argument "exclude" in
tarfile.TarFile.add().
INADA Naoki [Fri, 13 Jan 2017 10:31:15 +0000 (19:31 +0900)]
Issue #29062: Merge hashlib-blake2.rst into hashlib.rst
INADA Naoki [Fri, 13 Jan 2017 10:29:58 +0000 (19:29 +0900)]
Issue #29062: Merge hashlib-blake2.rst into hashlib.rst
Serhiy Storchaka [Fri, 13 Jan 2017 07:44:00 +0000 (09:44 +0200)]
Issue #29219: Fixed infinite recursion in the repr of uninitialized
ctypes.CDLL instances.
Serhiy Storchaka [Fri, 13 Jan 2017 07:42:17 +0000 (09:42 +0200)]
Issue #29219: Fixed infinite recursion in the repr of uninitialized
ctypes.CDLL instances.
Serhiy Storchaka [Fri, 13 Jan 2017 07:37:56 +0000 (09:37 +0200)]
Issue #29219: Fixed infinite recursion in the repr of uninitialized
ctypes.CDLL instances.
Serhiy Storchaka [Fri, 13 Jan 2017 07:23:15 +0000 (09:23 +0200)]
Issue #29192: Removed deprecated features in the http.cookies module.
Serhiy Storchaka [Fri, 13 Jan 2017 07:10:51 +0000 (09:10 +0200)]
Issue #29193: A format string argument for string.Formatter.format()
is now positional-only.
Serhiy Storchaka [Fri, 13 Jan 2017 06:53:58 +0000 (08:53 +0200)]
Issue #29195: Removed support of deprecated undocumented keyword arguments
in methods of regular expression objects.
Serhiy Storchaka [Fri, 13 Jan 2017 06:38:15 +0000 (08:38 +0200)]
Py_SIZE() was misused for dict.
Serhiy Storchaka [Fri, 13 Jan 2017 06:37:05 +0000 (08:37 +0200)]
Py_SIZE() was misused for dict.
Serhiy Storchaka [Fri, 13 Jan 2017 06:34:34 +0000 (08:34 +0200)]
Py_SIZE() was misused for dict.
Raymond Hettinger [Fri, 13 Jan 2017 06:25:25 +0000 (22:25 -0800)]
Fix typo
Alexander Belopolsky [Thu, 12 Jan 2017 18:17:23 +0000 (13:17 -0500)]
Closes #28130: Documented that time.tzset() updates time module globals.
Thanks Greg Bengeult for the patch.
Serhiy Storchaka [Thu, 12 Jan 2017 17:46:11 +0000 (19:46 +0200)]
Merge heads
Serhiy Storchaka [Thu, 12 Jan 2017 17:44:15 +0000 (19:44 +0200)]
Null merge
Serhiy Storchaka [Thu, 12 Jan 2017 17:44:06 +0000 (19:44 +0200)]
Null merge
Serhiy Storchaka [Thu, 12 Jan 2017 17:43:15 +0000 (19:43 +0200)]
Null merge
Serhiy Storchaka [Thu, 12 Jan 2017 17:43:06 +0000 (19:43 +0200)]
Null merge
Serhiy Storchaka [Thu, 12 Jan 2017 17:42:44 +0000 (19:42 +0200)]
Merge heads
Serhiy Storchaka [Thu, 12 Jan 2017 17:42:20 +0000 (19:42 +0200)]
Issue #28969: Fixed race condition in C implementation of functools.lru_cache.
KeyError could be raised when cached function with full cache was
simultaneously called from differen threads with the same uncached arguments.
Vinay Sajip [Thu, 12 Jan 2017 17:14:42 +0000 (17:14 +0000)]
Issue #22343: Merged change from 3.6.
Vinay Sajip [Thu, 12 Jan 2017 17:13:27 +0000 (17:13 +0000)]
Issue #22343: Merged change from 3.5.
Serhiy Storchaka [Thu, 12 Jan 2017 17:12:21 +0000 (19:12 +0200)]
Issue #28969: Fixed race condition in C implementation of functools.lru_cache.
KeyError could be raised when cached function with full cache was
simultaneously called from differen threads with the same uncached arguments.
Vinay Sajip [Thu, 12 Jan 2017 17:12:10 +0000 (17:12 +0000)]
Issue #22343: Made bash activate script available on Windows.
Serhiy Storchaka [Thu, 12 Jan 2017 16:34:33 +0000 (18:34 +0200)]
Issue #28969: Fixed race condition in C implementation of functools.lru_cache.
KeyError could be raised when cached function with full cache was
simultaneously called from differen threads with the same uncached arguments.
Martin Panter [Thu, 12 Jan 2017 11:54:59 +0000 (11:54 +0000)]
Issues #1621, #29145: Test for str.join() overflow
Martin Panter [Fri, 13 Jan 2017 10:38:09 +0000 (10:38 +0000)]
Issue #22980: Skip a sysconfig test if _ctypes is not available.
Extracted from revision
a1daf2d289ad by Zachary Ware.
Victor Stinner [Thu, 12 Jan 2017 10:53:20 +0000 (11:53 +0100)]
Merge 3.6
Victor Stinner [Thu, 12 Jan 2017 10:53:09 +0000 (11:53 +0100)]
Merge 3.5
Victor Stinner [Thu, 12 Jan 2017 10:51:46 +0000 (11:51 +0100)]
Fix script_helper.run_python_until_end(): copy SYSTEMROOT
Windows requires at least the SYSTEMROOT environment variable to start Python.
If run_python_until_end() doesn't copy SYSTEMROOT, the function always fail on
Windows.
Victor Stinner [Thu, 12 Jan 2017 10:51:31 +0000 (11:51 +0100)]
Issue #25591: Fix test_imaplib if ssl miss
Serhiy Storchaka [Wed, 11 Jan 2017 18:18:03 +0000 (20:18 +0200)]
Null merge
Serhiy Storchaka [Wed, 11 Jan 2017 18:17:34 +0000 (20:17 +0200)]
Merge with 3.5.
Serhiy Storchaka [Wed, 11 Jan 2017 18:16:44 +0000 (20:16 +0200)]
Issue #20804: Document the limitation of the unittest.mock.sentinel attributes.
Serhiy Storchaka [Wed, 11 Jan 2017 18:13:03 +0000 (20:13 +0200)]
Issue #20804: The unittest.mock.sentinel attributes now preserve their
identity when they are copied or pickled.
Vinay Sajip [Wed, 11 Jan 2017 17:44:07 +0000 (17:44 +0000)]
Issue #29220: Merged fixes from 3.6.
Vinay Sajip [Wed, 11 Jan 2017 17:41:28 +0000 (17:41 +0000)]
Issue #292Merged fixes from 3.5.
Vinay Sajip [Wed, 11 Jan 2017 17:35:36 +0000 (17:35 +0000)]
Issue #29220: Improved fix and test.
Martin Panter [Wed, 11 Jan 2017 12:00:39 +0000 (12:00 +0000)]
Issue #29239: Merge bug number from 3.6
Martin Panter [Wed, 11 Jan 2017 11:57:18 +0000 (11:57 +0000)]
Issue #15657: Merge METH_KEYWORDS doc from 3.6
Martin Panter [Wed, 11 Jan 2017 11:56:22 +0000 (11:56 +0000)]
Issue #29239: Fix --enable-optimizations bug number
Martin Panter [Wed, 11 Jan 2017 11:51:02 +0000 (11:51 +0000)]
Issue #15657: Merge other doc fix from 3.5
Martin Panter [Wed, 11 Jan 2017 11:50:06 +0000 (11:50 +0000)]
Issue #15657: Delete incorrect statement from PyMethodDef documentation
Patch by Berker Peksag.
Martin Panter [Wed, 11 Jan 2017 11:41:03 +0000 (11:41 +0000)]
Issue #15657: METH_KEYWORDS cannot be used alone in Python 3
Vinay Sajip [Wed, 11 Jan 2017 06:57:55 +0000 (06:57 +0000)]
Closes #29220: Fixed regression in logging.getLevelName().
Victor Stinner [Wed, 11 Jan 2017 01:12:06 +0000 (02:12 +0100)]
_PyEval_EvalCodeWithName(): remove redundant check
Replace the runtime check with an assertion (just in case).
Victor Stinner [Wed, 11 Jan 2017 00:07:03 +0000 (01:07 +0100)]
Disable _PyStack_AsTuple() inlining
Issue #29234: Inlining _PyStack_AsTuple() into callers increases their stack
consumption, Disable inlining to optimize the stack consumption.
Add _Py_NO_INLINE: use __attribute__((noinline)) of GCC and Clang.
It reduces the stack consumption, bytes per call, before => after:
test_python_call: 1040 => 976 (-64 B)
test_python_getitem: 976 => 912 (-64 B)
test_python_iterator: 1120 => 1056 (-64 B)
=> total: 3136 => 2944 (- 192 B)
Victor Stinner [Tue, 10 Jan 2017 23:54:57 +0000 (00:54 +0100)]
Inline call_function()
Issue #29227: Inline call_function() into _PyEval_EvalFrameDefault() using
Py_LOCAL_INLINE to reduce the stack consumption.
It reduces the stack consumption, bytes per call, before => after:
test_python_call: 1152 => 1040 (-112 B)
test_python_getitem: 1008 => 976 (-32 B)
test_python_iterator: 1232 => 1120 (-112 B)
=> total: 3392 => 3136 (- 256 B)
Victor Stinner [Tue, 10 Jan 2017 23:07:40 +0000 (00:07 +0100)]
call_method() now uses _PyObject_FastCall()
Issue #29233: Replace the inefficient _PyObject_VaCallFunctionObjArgs() with
_PyObject_FastCall() in call_method() and call_maybe().
Only a few functions call call_method() and call it with a fixed number of
arguments. Avoid the complex and expensive _PyObject_VaCallFunctionObjArgs()
function, replace it with an array allocated on the stack with the exact number
of argumlents.
It reduces the stack consumption, bytes per call, before => after:
test_python_call: 1168 => 1152 (-16 B)
test_python_getitem: 1344 => 1008 (-336 B)
test_python_iterator: 1568 => 1232 (-336 B)
Remove the _PyObject_VaCallFunctionObjArgs() function which became useless.
Rename it to object_vacall() and make it private.
Xiang Zhang [Tue, 10 Jan 2017 03:30:44 +0000 (11:30 +0800)]
Issue #29217: Merge 3.6.
Xiang Zhang [Tue, 10 Jan 2017 03:30:02 +0000 (11:30 +0800)]
Issue #29217: Merge 3.5.
Xiang Zhang [Tue, 10 Jan 2017 03:29:27 +0000 (11:29 +0800)]
Issue #29217: Fix the wrong type description of UUID.variant.
Xiang Zhang [Tue, 10 Jan 2017 02:56:38 +0000 (10:56 +0800)]
Issue #29145: Merge 3.6.
Xiang Zhang [Tue, 10 Jan 2017 02:54:19 +0000 (10:54 +0800)]
Issue #29145: Merge 3.5.
Xiang Zhang [Tue, 10 Jan 2017 02:52:00 +0000 (10:52 +0800)]
Issue #29145: Fix overflow checks in str.replace() and str.join().
Based on patch by Martin Panter.
Vinay Sajip [Mon, 9 Jan 2017 16:55:24 +0000 (16:55 +0000)]
Closes #29177: Merged fix from 3.6.
Vinay Sajip [Mon, 9 Jan 2017 16:54:12 +0000 (16:54 +0000)]
Fixes #29177: Improved resilience of logging tests which use socket servers.
Thanks to Xavier de Gaye for the report and patch improvements.
Vinay Sajip [Mon, 9 Jan 2017 16:48:23 +0000 (16:48 +0000)]
Closes #29133: merged update from 3.6.
Thanks to Evan_ for the report and Marco Buttu for the patch.
Vinay Sajip [Mon, 9 Jan 2017 16:46:04 +0000 (16:46 +0000)]
Fixes #29133: clarified shlex documentation.
Raymond Hettinger [Mon, 9 Jan 2017 15:50:19 +0000 (07:50 -0800)]
Add test for
ea064ff3c10f
Raymond Hettinger [Mon, 9 Jan 2017 15:39:46 +0000 (07:39 -0800)]
Backed out changeset
ea064ff3c10f
Stefan Krah [Mon, 9 Jan 2017 12:53:32 +0000 (13:53 +0100)]
While a speedup of 1% is measurable, contexts aren't created that often,
so let's defer this until 3.7, 3.8, ... all have this new function.
Stefan Krah [Mon, 9 Jan 2017 12:12:09 +0000 (13:12 +0100)]
Merge 3.6.
Stefan Krah [Mon, 9 Jan 2017 12:11:51 +0000 (13:11 +0100)]
Merge 3.5.
Stefan Krah [Mon, 9 Jan 2017 12:11:27 +0000 (13:11 +0100)]
Issue #28701: Revert part of
5bdc8e1a50c8 for the following reasons:
- There was no real problem to begin with.
- The hypothetical problem has been fixed by
5bdc8e1a50c8 .
Victor Stinner [Mon, 9 Jan 2017 10:21:37 +0000 (11:21 +0100)]
Merge 3.6
Victor Stinner [Mon, 9 Jan 2017 10:21:26 +0000 (11:21 +0100)]
Null merge 3.5
Python/random.c is more then in the 3.6 branch.
Victor Stinner [Mon, 9 Jan 2017 10:18:53 +0000 (11:18 +0100)]
Issue #29157: Prefer getrandom() over getentropy()
Copy and then adapt Python/random.c from default branch. Difference between 3.5
and default branches:
* Python 3.5 only uses getrandom() in non-blocking mode: flags=GRND_NONBLOCK
* If getrandom() fails with EAGAIN: py_getrandom() immediately fails and
remembers that getrandom() doesn't work.
* Python 3.5 has no _PyOS_URandomNonblock() function: _PyOS_URandom()
works in non-blocking mode on Python 3.5
Serhiy Storchaka [Mon, 9 Jan 2017 08:10:07 +0000 (10:10 +0200)]
Issue #29190: Fixed possible errors in comparing strings in the pickle module.
Serhiy Storchaka [Mon, 9 Jan 2017 08:09:43 +0000 (10:09 +0200)]
Issue #29190: Fixed possible errors in comparing strings in the pickle module.
Serhiy Storchaka [Mon, 9 Jan 2017 08:04:34 +0000 (10:04 +0200)]
Issue #29190: Fixed possible errors in comparing strings in the pickle module.
Xiang Zhang [Mon, 9 Jan 2017 03:52:10 +0000 (11:52 +0800)]
Issue #29142: Merge 3.6.
Xiang Zhang [Mon, 9 Jan 2017 03:50:02 +0000 (11:50 +0800)]
Issue #29142: Merge 3.5.
Xiang Zhang [Mon, 9 Jan 2017 03:47:55 +0000 (11:47 +0800)]
Issue #29142: Fix suffixes in no_proxy handling in urllib.
In urllib.request, suffixes in no_proxy environment variable with
leading dots could match related hostnames again (e.g. .b.c matches a.b.c).
Patch by Milan Oberkirch.
Raymond Hettinger [Mon, 9 Jan 2017 03:34:28 +0000 (19:34 -0800)]
Sync-up lru_cache() C code with space saving feature in the Python version.
Raymond Hettinger [Mon, 9 Jan 2017 02:22:41 +0000 (18:22 -0800)]
merge
Raymond Hettinger [Mon, 9 Jan 2017 02:22:24 +0000 (18:22 -0800)]
Sync-up with 3.7 by backporting minor lru_cache code beautification
Raymond Hettinger [Mon, 9 Jan 2017 02:04:30 +0000 (18:04 -0800)]
Complete the merge for issue #29203
Raymond Hettinger [Mon, 9 Jan 2017 01:29:21 +0000 (17:29 -0800)]
merge
Raymond Hettinger [Mon, 9 Jan 2017 01:28:20 +0000 (17:28 -0800)]
Issue #29203: functools.lru_cache() now respects PEP 468
Xiang Zhang [Sun, 8 Jan 2017 15:30:05 +0000 (23:30 +0800)]
Issue #29034: Merge 3.6.
Xiang Zhang [Sun, 8 Jan 2017 15:26:57 +0000 (23:26 +0800)]
Issue #29034: Fix memory leak and use-after-free in path_converter.
Raymond Hettinger [Sun, 8 Jan 2017 08:37:32 +0000 (00:37 -0800)]
merge
Raymond Hettinger [Sun, 8 Jan 2017 08:37:13 +0000 (00:37 -0800)]
Add OrderedDict test for PEP 468 (guaranteed ordered of kwargs)
Raymond Hettinger [Sun, 8 Jan 2017 06:05:28 +0000 (22:05 -0800)]
merge
Raymond Hettinger [Sun, 8 Jan 2017 06:05:12 +0000 (22:05 -0800)]
Update OrderedDict docs to reflect acceptance of PEP 468
Raymond Hettinger [Sun, 8 Jan 2017 04:53:09 +0000 (20:53 -0800)]
Issue #29200: Fix test to use self.assertEqual instead of py.test style tests
Raymond Hettinger [Sun, 8 Jan 2017 04:44:48 +0000 (20:44 -0800)]
Issue #29200: Add test for lru cache only calling __hash__ once
Martin Panter [Sun, 8 Jan 2017 01:06:48 +0000 (01:06 +0000)]
Issue #28815: Merge test tweak from 3.6
Martin Panter [Sun, 8 Jan 2017 01:06:18 +0000 (01:06 +0000)]
Issue #28815: Merge test tweak from 3.5