summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Includes ensurepip and venv packages in nuget package.Steve Dower2017-02-061-2/+11
|\
| * Includes ensurepip and venv packages in nuget package.Steve Dower2017-02-061507-81004/+138825
| |\
| * | Includes ensurepip and venv packages in nuget package.Steve Dower2017-02-061-2/+11
| | |
* | | mergeRaymond Hettinger2017-02-06731-159740/+16578
|\ \ \ | |_|/ |/| |
| * | Optimize deque index, insert and rotate() methodsVictor Stinner2017-02-061-11/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29452: Use METH_FASTCALL calling convention for index(), insert() and rotate() methods of collections.deque to avoid the creation a temporary tuple to pass position arguments. Speedup on deque methods: * d.rotate(): 1.10x faster * d.rotate(1): 1.24x faster * d.insert(): 1.18x faster * d.index(): 1.24x faster
| * | Prohibit implicit C function declarationsVictor Stinner2017-02-063-0/+65
| | | | | | | | | | | | | | | | | | | | | Issue #27659: use -Werror=implicit-function-declaration when possible (GCC and Clang, but it depends on the compiler version). Patch written by Chi Hsuan Yen.
| * | regrtest: don't fail immediately if a child does crashVictor Stinner2017-02-063-6/+16
| | | | | | | | | | | | | | | | | | Issue #29362: Catch a crash of a worker process as a normal failure and continue to run next tests. It allows to get the usual test summary: single line result (OK/FAIL), total duration, etc.
| * | Merge from 3.6Berker Peksag2017-02-061-5/+5
| |\ \
| * | | Issue #29460: _PyArg_NoKeywords(), _PyArg_NoStackKeywords() andSerhiy Storchaka2017-02-064-6/+16
| | | | | | | | | | | | | | | | _PyArg_NoPositional() now are macros.
| * | | Issue #29405: Make total calculation in _guess_delimiter more accurate.Xiang Zhang2017-02-061-2/+2
| | | |
| * | | Issue #20186: Regenerated Argument Clinic.Serhiy Storchaka2017-02-052-3/+3
| | | |
| * | | Merge from 3.6Steve Dower2017-02-04730-159715/+16450
| |\ \ \
| | * \ \ Issue #28489: Merge from 3.6Berker Peksag2017-02-051-1/+1
| | |\ \ \
| | * \ \ \ Merge from 3.6Steve Dower2017-02-04730-159715/+16450
| | |\ \ \ \
| | | * \ \ \ Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0].Steve Dower2017-02-042-2/+14
| | | |\ \ \ \
| | | * \ \ \ \ Issue #29326: Ignores blank lines in ._pth files (Patch by Alexey Izbyshev)Steve Dower2017-02-044-14/+31
| | | |\ \ \ \ \
| | | * \ \ \ \ \ Merge issue #28164 and issue #29409Steve Dower2017-02-045-39/+101
| | | |\ \ \ \ \ \
| | | * \ \ \ \ \ \ Issue #29392: Prevent crash when passing invalid arguments into msvcrt module.Steve Dower2017-02-04730-159703/+16448
| | | |\ \ \ \ \ \ \
| | | | * \ \ \ \ \ \ Issue #29416: Prevent infinite loop in pathlib.Path.mkdirSteve Dower2017-02-043-1/+14
| | | | |\ \ \ \ \ \ \
| | | | * \ \ \ \ \ \ \ Issue #29444: Fixed out-of-bounds buffer access in the group() method ofSerhiy Storchaka2017-02-04730-159701/+16446
| | | | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the match object. Based on patch by WGH.
| | | | | * \ \ \ \ \ \ \ Merge 3.6.Stefan Krah2017-02-041-1/+1
| | | | | |\ \ \ \ \ \ \ \
| | | | | * | | | | | | | | Reduce load factor (from 66% to 60%) to improve effectiveness of linear probing.Raymond Hettinger2017-02-041-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
| | | | | * | | | | | | | | Issue #20186: Converted the tracemalloc module to Argument Clinic.Serhiy Storchaka2017-02-042-102/+315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on patch by Georg Brandl.
| | | | | * | | | | | | | | Issue #20186: Converted the symtable module to Argument Clinic.Serhiy Storchaka2017-02-042-11/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original patch by Georg Brandl.
| | | | | * | | | | | | | | Removed redundant Argument Clinic directives.Serhiy Storchaka2017-02-043-19/+0
| | | | | | | | | | | | | |
| | | | | * | | | | | | | | Issue #20185: Converted the gc module to Argument Clinic.Serhiy Storchaka2017-02-042-98/+390
| | | | | | | | | | | | | |
| | | | | * | | | | | | | | Issue #29300: Use Argument Clinic for getting struct object from the format.Serhiy Storchaka2017-02-042-83/+103
| | | | | | | | | | | | | |
| | | | | * | | | | | | | | Issue #27867: Silenced may-be-used-uninitialized warnings afterSerhiy Storchaka2017-02-04725-159444/+15633
| | | | | |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | using PySlice_GetIndicesEx() in debug builds.
| | | | | | * \ \ \ \ \ \ \ \ Issue #29198: Merge from 3.6Berker Peksag2017-02-04725-159444/+15633
| | | | | | |\ \ \ \ \ \ \ \ \
| | | | | | | * \ \ \ \ \ \ \ \ Issue #29198: Merge from 3.6Berker Peksag2017-02-04725-159444/+15633
| | | | | | | |\ \ \ \ \ \ \ \ \
| | | | | | | | * | | | | | | | | Issue #29311: Regenerate Argument Clinic.Serhiy Storchaka2017-02-042-3/+3
| | | | | | | | | | | | | | | | |
| | | | | | | | * | | | | | | | | null mergeXiang Zhang2017-02-030-0/+0
| | | | | | | | |\ \ \ \ \ \ \ \ \
| | | | | | | | * | | | | | | | | | Issue #29263: LOAD_METHOD support for C methodsINADA Naoki2017-02-038-36/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Calling builtin method is at most 10% faster.
| | | | | | | | * | | | | | | | | | Closes #29213: Merged fix from 3.6.Vinay Sajip2017-02-022-7/+5
| | | | | | | | | | | | | | | | | |
| | | | | | | | * | | | | | | | | | Closes #24875: Merged fix from 3.6.Vinay Sajip2017-02-02725-159437/+15574
| | | | | | | | |\ \ \ \ \ \ \ \ \ \
| | | | | | | | | * | | | | | | | | | Remove unnecessary variables.Raymond Hettinger2017-02-021-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * so->used never gets changed during a resize * so->filled only changes when dummies are present and being eliminated
| | | | | | | | | * | | | | | | | | | Issue #29421: Make int.to_bytes() and int.from_bytes() slightly fasterSerhiy Storchaka2017-02-021-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (10-20% for small integers).
| | | | | | | | | * | | | | | | | | | Rename struct.unpack() 2nd parameter to "buffer"Victor Stinner2017-02-023-15/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | | | | | | | | * | | | | | | | | | Null merge 3.6Victor Stinner2017-02-020-0/+0
| | | | | | | | | |\ \ \ \ \ \ \ \ \ \
| | | | | | | | | * | | | | | | | | | | Issue #29300: Convert _struct module to Argument ClinicVictor Stinner2017-02-024-239/+540
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
| | | | | | | | | * | | | | | | | | | | Issue #29368: Fix _Pickle_FastCall() usage in do_append()Victor Stinner2017-02-021-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _Pickle_FastCall() has a surprising API: it decrements the reference counter of its second argument.
| | | | | | | | | * | | | | | | | | | | Issue #29368: The extend() method is now called instead of the append()Serhiy Storchaka2017-02-023-24/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | method when unpickle collections.deque and other list-like objects. This can speed up unpickling to 2 times.
| | | | | | | | | * | | | | | | | | | | Issue #29381: merge with 3.6Mariatta Wijaya2017-02-011-11/+10
| | | | | | | | | |\ \ \ \ \ \ \ \ \ \ \
| | | | | | | | | * | | | | | | | | | | | Issue #20185: Converted the int class to Argument Clinic.Serhiy Storchaka2017-02-012-135/+303
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on patch by Vajrasky Kok.
| | | | | | | | | * | | | | | | | | | | | Issue #29407: Merge from 3.6Berker Peksag2017-02-01720-159031/+14667
| | | | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | | | | * | | | | | | | | | | | Issue #29377: Add three new wrappers to types.py (Manuel Krebber).Guido van Rossum2017-02-014-0/+49
| | | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | * | | | | | | | | | | | Fix test_gdb.test_wrapper_call() on Python 2Victor Stinner2017-02-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29367. On Python 2, __init__ name is render as u'__init__'.
| | | | | | | | | | * | | | | | | | | | | | Issue #29286: Rename private PyArg_UnpackStack_impl() to unpack_stack()Victor Stinner2017-02-011-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename also "l" argument to "nargs".
| | | | | | | | | | * | | | | | | | | | | | Document that _PyFunction_FastCallDict() must copy kwargsVictor Stinner2017-02-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29318: Caller and callee functions must not share the dictionary: kwargs must be copied.
| | | | | | | | | | * | | | | | | | | | | | Make test_gdb.test_wrapper_call() make reliableVictor Stinner2017-02-011-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29367. Use two break points to prevent breakpoint during Python initialization.