]>
granicus.if.org Git - python/log
Steve Dower [Sat, 4 Feb 2017 23:14:18 +0000 (15:14 -0800)]
Merge issue #28164 and issue #29409
Steve Dower [Sat, 4 Feb 2017 23:07:46 +0000 (15:07 -0800)]
Issue #28164: Correctly handle special console filenames (patch by Eryk Sun)
Steve Dower [Sat, 4 Feb 2017 23:05:50 +0000 (15:05 -0800)]
Issue #29392: Prevent crash when passing invalid arguments into msvcrt module.
Steve Dower [Sat, 4 Feb 2017 23:05:40 +0000 (15:05 -0800)]
Issue #29392: Prevent crash when passing invalid arguments into msvcrt module.
Steve Dower [Sat, 4 Feb 2017 23:05:13 +0000 (15:05 -0800)]
Issue #29392: Prevent crash when passing invalid arguments into msvcrt module.
Steve Dower [Sat, 4 Feb 2017 22:56:57 +0000 (14:56 -0800)]
Issue #29416: Prevent infinite loop in pathlib.Path.mkdir
Steve Dower [Sat, 4 Feb 2017 22:55:16 +0000 (14:55 -0800)]
Issue #29416: Prevent infinite loop in pathlib.Path.mkdir
Steve Dower [Sat, 4 Feb 2017 22:54:56 +0000 (14:54 -0800)]
Issue #29416: Prevent infinite loop in pathlib.Path.mkdir
Steve Dower [Sat, 4 Feb 2017 22:38:11 +0000 (14:38 -0800)]
Issue #29409: Implement PEP 529 for io.FileIO (Patch by Eryk Sun)
Serhiy Storchaka [Sat, 4 Feb 2017 20:57:44 +0000 (22:57 +0200)]
Issue #29444: Fixed out-of-bounds buffer access in the group() method of
the match object. Based on patch by WGH.
Serhiy Storchaka [Sat, 4 Feb 2017 20:55:40 +0000 (22:55 +0200)]
Issue #29444: Fixed out-of-bounds buffer access in the group() method of
the match object. Based on patch by WGH.
Serhiy Storchaka [Sat, 4 Feb 2017 20:53:57 +0000 (22:53 +0200)]
Issue #29444: Fixed out-of-bounds buffer access in the group() method of
the match object. Based on patch by WGH.
Stefan Krah [Sat, 4 Feb 2017 13:59:11 +0000 (14:59 +0100)]
Merge 3.6.
Stefan Krah [Sat, 4 Feb 2017 13:58:50 +0000 (14:58 +0100)]
Issue29439: _decimal on Android requires linking with libm.
Patch by Chi Hsuan Yen.
Raymond Hettinger [Sat, 4 Feb 2017 10:43:42 +0000 (02:43 -0800)]
Reduce load factor (from 66% to 60%) to improve effectiveness of linear probing.
Decreased density gives better collision statistics (average of 2.5 probes in a
full table versus 3.0 previously) and fewer occurences of starting a second
possibly overlapping sequence of 10 linear probes. Makes resizes a little more
frequent but each with less work (fewer insertions and fewer collisions).
Serhiy Storchaka [Sat, 4 Feb 2017 10:18:38 +0000 (12:18 +0200)]
Issue #20186: Converted the tracemalloc module to Argument Clinic.
Based on patch by Georg Brandl.
Serhiy Storchaka [Sat, 4 Feb 2017 10:13:20 +0000 (12:13 +0200)]
Issue #20186: Converted the symtable module to Argument Clinic.
Original patch by Georg Brandl.
Serhiy Storchaka [Sat, 4 Feb 2017 09:53:22 +0000 (11:53 +0200)]
Removed redundant Argument Clinic directives.
Serhiy Storchaka [Sat, 4 Feb 2017 09:19:59 +0000 (11:19 +0200)]
Issue #20185: Converted the gc module to Argument Clinic.
Serhiy Storchaka [Sat, 4 Feb 2017 09:14:52 +0000 (11:14 +0200)]
Issue #29300: Use Argument Clinic for getting struct object from the format.
Serhiy Storchaka [Sat, 4 Feb 2017 09:08:04 +0000 (11:08 +0200)]
Issue #27867: Silenced may-be-used-uninitialized warnings after
using PySlice_GetIndicesEx() in debug builds.
Serhiy Storchaka [Sat, 4 Feb 2017 09:07:17 +0000 (11:07 +0200)]
Issue #27867: Silenced may-be-used-uninitialized warnings after
using PySlice_GetIndicesEx() in debug builds.
Serhiy Storchaka [Sat, 4 Feb 2017 09:04:00 +0000 (11:04 +0200)]
Issue #27867: Silenced may-be-used-uninitialized warnings after
using PySlice_GetIndicesEx() in debug builds.
Berker Peksag [Sat, 4 Feb 2017 06:35:10 +0000 (09:35 +0300)]
Issue #29198: Merge from 3.6
Berker Peksag [Sat, 4 Feb 2017 06:34:48 +0000 (09:34 +0300)]
Issue #29198: Merge from 3.5
Berker Peksag [Sat, 4 Feb 2017 06:34:16 +0000 (09:34 +0300)]
Issue #29198: Fix indentation and markup in typing.rst
Patch by Jelle Zijlstra.
Berker Peksag [Sat, 4 Feb 2017 06:19:04 +0000 (09:19 +0300)]
Issue #29198: Merge from 3.6
Berker Peksag [Sat, 4 Feb 2017 06:18:42 +0000 (09:18 +0300)]
Issue #29198: Merge from 3.5
Berker Peksag [Sat, 4 Feb 2017 06:18:11 +0000 (09:18 +0300)]
Issue #29198: Document typing.AsyncGenerator
Patch by Jelle Zijlstra.
Serhiy Storchaka [Sat, 4 Feb 2017 06:05:07 +0000 (08:05 +0200)]
Issue #29311: Regenerate Argument Clinic.
Xiang Zhang [Fri, 3 Feb 2017 03:08:45 +0000 (11:08 +0800)]
null merge
INADA Naoki [Thu, 2 Feb 2017 22:43:03 +0000 (07:43 +0900)]
Issue #29263: LOAD_METHOD support for C methods
Calling builtin method is at most 10% faster.
Vinay Sajip [Thu, 2 Feb 2017 19:33:43 +0000 (19:33 +0000)]
Closes #29213: Merged fix from 3.6.
Vinay Sajip [Thu, 2 Feb 2017 19:26:48 +0000 (19:26 +0000)]
Fixes #29213: merged fix from 3.5.
Vinay Sajip [Thu, 2 Feb 2017 19:25:24 +0000 (19:25 +0000)]
Fixes #29213: regularised EOLs of venv scripts.
Vinay Sajip [Thu, 2 Feb 2017 19:17:51 +0000 (19:17 +0000)]
Closes #24875: Merged fix from 3.6.
Vinay Sajip [Thu, 2 Feb 2017 19:17:02 +0000 (19:17 +0000)]
Fixes #24875: Merged fix from 3.5.
Vinay Sajip [Thu, 2 Feb 2017 19:05:19 +0000 (19:05 +0000)]
Fixes #24875: pip can now be installed in a venv with --system-site-packages.
Raymond Hettinger [Thu, 2 Feb 2017 16:24:48 +0000 (08:24 -0800)]
Remove unnecessary variables.
* so->used never gets changed during a resize
* so->filled only changes when dummies are present and being eliminated
Serhiy Storchaka [Thu, 2 Feb 2017 14:54:45 +0000 (16:54 +0200)]
Issue #29421: Make int.to_bytes() and int.from_bytes() slightly faster
(10-20% for small integers).
Victor Stinner [Thu, 2 Feb 2017 13:24:16 +0000 (14:24 +0100)]
Rename struct.unpack() 2nd parameter to "buffer"
Issue #29300: Rename struct.unpack() second parameter from "inputstr" to
"buffer", and use the Py_buffer type.
Fix also unit tests on struct.unpack() which passed a Unicode string instead of
a bytes string as struct.unpack() second parameter. The purpose of
test_trailing_counter() is to test invalid format strings, not to test the
buffer parameter.
Victor Stinner [Thu, 2 Feb 2017 13:19:26 +0000 (14:19 +0100)]
Null merge 3.6
Victor Stinner [Thu, 2 Feb 2017 13:18:43 +0000 (14:18 +0100)]
Merge 3.5
Victor Stinner [Thu, 2 Feb 2017 13:18:18 +0000 (14:18 +0100)]
Issue #29300: test_struct tests unpack_from() with keywords
Add an unit test on the _struct.Struct.unpack_from() method to test passing
arguments as keywords.
Victor Stinner [Thu, 2 Feb 2017 11:09:30 +0000 (12:09 +0100)]
Issue #29300: Convert _struct module to Argument Clinic
* The struct module now requires contiguous buffers.
* Convert most functions and methods of the _struct module to Argument Clinic
* Use "Py_buffer" type for the "buffer" argument. Argument Clinic is
responsible to create and release the Py_buffer object.
* Use "PyStructObject *" type for self to avoid explicit conversions.
* Add an unit test on the _struct.Struct.unpack_from() method to test passing
arguments as keywords.
* Rephrase docstrings.
* Rename "fmt" argument to "format" in docstrings and the documentation.
As a side effect, functions and methods which used METH_VARARGS calling
convention like struct.pack() now use the METH_FASTCALL calling convention
which avoids the creation of temporary tuple to pass positional arguments and
so is faster. For example, struct.pack("i", 1) becomes 1.56x faster (-36%)::
$ ./python -m perf timeit \
-s 'import struct; pack=struct.pack' 'pack("i", 1)' \
--compare-to=../default-ref/python
Median +- std dev: 119 ns +- 1 ns -> 76.8 ns +- 0.4 ns: 1.56x faster (-36%)
Significant (t=295.91)
Patch co-written with Serhiy Storchaka.
Victor Stinner [Thu, 2 Feb 2017 09:56:47 +0000 (10:56 +0100)]
Issue #29368: Fix _Pickle_FastCall() usage in do_append()
_Pickle_FastCall() has a surprising API: it decrements the reference counter of
its second argument.
Serhiy Storchaka [Thu, 2 Feb 2017 09:12:47 +0000 (11:12 +0200)]
Issue #29368: The extend() method is now called instead of the append()
method when unpickle collections.deque and other list-like objects.
This can speed up unpickling to 2 times.
Mariatta Wijaya [Thu, 2 Feb 2017 05:03:48 +0000 (21:03 -0800)]
Issue #29381: merge with 3.6
Mariatta Wijaya [Thu, 2 Feb 2017 04:55:47 +0000 (20:55 -0800)]
Issue #29381: Clarify ordering of UNIX shebang line as source encoding line
Mariatta Wijaya [Thu, 2 Feb 2017 04:38:55 +0000 (20:38 -0800)]
Backed out changeset
3d712292f2fa
Mariatta Wijaya [Thu, 2 Feb 2017 04:21:22 +0000 (20:21 -0800)]
Issue #29381: Clarify ordering of UNIX shebang line as source encoding line
Serhiy Storchaka [Wed, 1 Feb 2017 21:12:20 +0000 (23:12 +0200)]
Issue #20185: Converted the int class to Argument Clinic.
Based on patch by Vajrasky Kok.
Berker Peksag [Wed, 1 Feb 2017 19:38:12 +0000 (22:38 +0300)]
Issue #29407: Merge from 3.6
Berker Peksag [Wed, 1 Feb 2017 19:37:49 +0000 (22:37 +0300)]
Issue #29407: Merge from 3.5
Berker Peksag [Wed, 1 Feb 2017 19:37:16 +0000 (22:37 +0300)]
Issue #29407: Remove redundant ensure_future() calls in factorial example
Guido van Rossum [Wed, 1 Feb 2017 18:55:58 +0000 (10:55 -0800)]
Issue #29377: Add three new wrappers to types.py (Manuel Krebber).
Victor Stinner [Wed, 1 Feb 2017 17:26:14 +0000 (18:26 +0100)]
Fix test_gdb.test_wrapper_call() on Python 2
Issue #29367. On Python 2, __init__ name is render as u'__init__'.
Victor Stinner [Wed, 1 Feb 2017 16:42:18 +0000 (17:42 +0100)]
Issue #29286: Rename private PyArg_UnpackStack_impl() to unpack_stack()
Rename also "l" argument to "nargs".
Victor Stinner [Wed, 1 Feb 2017 16:04:52 +0000 (17:04 +0100)]
Document that _PyFunction_FastCallDict() must copy kwargs
Issue #29318: Caller and callee functions must not share the dictionary:
kwargs must be copied.
Victor Stinner [Wed, 1 Feb 2017 16:00:32 +0000 (17:00 +0100)]
Make test_gdb.test_wrapper_call() make reliable
Issue #29367. Use two break points to prevent breakpoint during Python
initialization.
Victor Stinner [Wed, 1 Feb 2017 15:29:54 +0000 (16:29 +0100)]
python-gdb.py supports method-wrapper
Issue #29367: python-gdb.py now supports also method-wrapper (wrapperobject)
objects.
doko@ubuntu.com [Wed, 1 Feb 2017 12:02:16 +0000 (13:02 +0100)]
Merge 3.6
doko@ubuntu.com [Wed, 1 Feb 2017 12:01:54 +0000 (13:01 +0100)]
Merge 3.5
doko@ubuntu.com [Wed, 1 Feb 2017 12:01:17 +0000 (13:01 +0100)]
Issue #29169: Fix NEWS entry.
Benjamin Peterson [Wed, 1 Feb 2017 07:31:20 +0000 (23:31 -0800)]
merge 3.6 (#29398)
Benjamin Peterson [Wed, 1 Feb 2017 07:31:10 +0000 (23:31 -0800)]
merge 3.5 (#29398)
Benjamin Peterson [Wed, 1 Feb 2017 07:31:02 +0000 (23:31 -0800)]
gc types needs to be allocated as such (closes #29398)
Berker Peksag [Wed, 1 Feb 2017 01:42:48 +0000 (04:42 +0300)]
Issue #29218: Remove unused install_misc command
It has been documented as unused since
6c6844a2fa30 (2000-05-25)
Patch by Eric N. Vander Weele.
doko@ubuntu.com [Tue, 31 Jan 2017 12:53:39 +0000 (13:53 +0100)]
merge 3.6
doko@ubuntu.com [Tue, 31 Jan 2017 12:51:21 +0000 (13:51 +0100)]
merge 3.5
doko@ubuntu.com [Tue, 31 Jan 2017 12:49:48 +0000 (13:49 +0100)]
- Issue #29169: Update zlib to 1.2.10.
doko@ubuntu.com [Tue, 31 Jan 2017 12:35:56 +0000 (13:35 +0100)]
merge 3.6
doko@ubuntu.com [Tue, 31 Jan 2017 12:35:26 +0000 (13:35 +0100)]
merge 3.5
doko@ubuntu.com [Tue, 31 Jan 2017 12:34:58 +0000 (13:34 +0100)]
add Modules/zlib/zlib.map to .hgeol
Berker Peksag [Mon, 30 Jan 2017 10:56:20 +0000 (13:56 +0300)]
Issue #29283: Merge from 3.6
Berker Peksag [Mon, 30 Jan 2017 10:55:49 +0000 (13:55 +0300)]
Issue #29283: Delete accidentally added Lib/site-packages/README
It was renamed to README.txt in
d90a65014c42 and it was
back by a merge commit accidentally.
Martin Panter [Sun, 29 Jan 2017 23:37:56 +0000 (23:37 +0000)]
Issue #28822: Add susp-ignored entry for NEWS; fix grammar
Martin Panter [Sun, 29 Jan 2017 23:37:50 +0000 (23:37 +0000)]
Issues #11670: Merge configparser doc from 3.6
Martin Panter [Sun, 29 Jan 2017 23:37:24 +0000 (23:37 +0000)]
Issues #29349: Merge Py 2.6+ compatibility from 3.6
Martin Panter [Sun, 29 Jan 2017 23:36:39 +0000 (23:36 +0000)]
Issues #11670: Merge configparser doc from 3.5
Martin Panter [Sun, 29 Jan 2017 23:34:52 +0000 (23:34 +0000)]
Issues #29349: Merge Py 2.6+ compatibility from 3.5
Martin Panter [Sun, 29 Jan 2017 23:33:27 +0000 (23:33 +0000)]
Issue #11670: readfp(fp) parameter name is different to read_file(f)
Martin Panter [Sun, 29 Jan 2017 23:33:13 +0000 (23:33 +0000)]
Issue #29349: Use __future__ print_function; Sphinx may use Python 2.6+
Martin Panter [Sun, 29 Jan 2017 10:21:57 +0000 (10:21 +0000)]
Issue #29384: Remove Be OS scripts from Modules/, unused in 3.0+
Martin Panter [Sun, 29 Jan 2017 10:17:17 +0000 (10:17 +0000)]
Issues #29349: Add NEWS for 3.7; use “with” statement
Martin Panter [Sun, 29 Jan 2017 10:16:28 +0000 (10:16 +0000)]
Issues #29349: Merge Py 2 fix 3.6
Martin Panter [Sun, 29 Jan 2017 10:10:30 +0000 (10:10 +0000)]
Issues #12067: Merge hash recommendation from 3.6
Martin Panter [Sun, 29 Jan 2017 10:09:43 +0000 (10:09 +0000)]
Issues #29349: Merge Py 2 fix 3.5
Martin Panter [Sun, 29 Jan 2017 10:07:26 +0000 (10:07 +0000)]
Issues #12067: Merge hash recommendation from 3.5
Martin Panter [Sun, 29 Jan 2017 10:05:02 +0000 (10:05 +0000)]
Issue #29349: Fix Python 2 syntax in documentation build code
Martin Panter [Sun, 29 Jan 2017 10:00:23 +0000 (10:00 +0000)]
Issue #12067: Recommend that hash and equality be consistent
Raymond Hettinger [Sun, 29 Jan 2017 04:17:07 +0000 (20:17 -0800)]
merge
Raymond Hettinger [Sun, 29 Jan 2017 04:16:40 +0000 (20:16 -0800)]
Issue 29310: Document typing.NamedTuple default argument syntax
INADA Naoki [Sat, 28 Jan 2017 07:35:44 +0000 (16:35 +0900)]
Issue #29383: reduce temporary interned unicode
add_methods(), add_members(), and add_getset() used PyDict_SetItemString()
to register descriptor to the type's dict.
So descr_new() and PyDict_SetItemString() creates interned unicode from same
C string.
This patch takes interned unicode from descriptor, and use PyDict_SetItem()
instead of PyDict_SetItemString().
python_startup_no_site:
default: Median +- std dev: 12.7 ms +- 0.1 ms
patched: Median +- std dev: 12.5 ms +- 0.1 ms
Vinay Sajip [Fri, 27 Jan 2017 13:05:09 +0000 (13:05 +0000)]
Closes #28784: Merged update from 3.6.
Vinay Sajip [Fri, 27 Jan 2017 13:04:33 +0000 (13:04 +0000)]
Fixes #28784: Clarified use of shlex.shlex with punctuation_chars.
Vinay Sajip [Fri, 27 Jan 2017 12:43:41 +0000 (12:43 +0000)]
Closes #29308: Merged fix from 3.6.
Vinay Sajip [Fri, 27 Jan 2017 12:42:45 +0000 (12:42 +0000)]
Fixes #29308: Merged fix from 3.5.
Vinay Sajip [Fri, 27 Jan 2017 12:41:27 +0000 (12:41 +0000)]
Fixes #29308: Respect VIRTUAL_ENV_DISABLE_PROMPT in Activate.ps1.
Benjamin Peterson [Thu, 26 Jan 2017 07:35:46 +0000 (23:35 -0800)]
merge 3.6