summaryrefslogtreecommitdiff
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20186: Regenerated Argument Clinic.Serhiy Storchaka2017-02-052-3/+3
|
* Merge from 3.6Steve Dower2017-02-04449-143568/+7283
|\
| * Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0].Steve Dower2017-02-041-2/+12
| |\
| * \ Merge issue #28164 and issue #29409Steve Dower2017-02-042-37/+51
| |\ \
| * \ \ Issue #29444: Fixed out-of-bounds buffer access in the group() method ofSerhiy Storchaka2017-02-04449-143559/+7284
| |\ \ \ | | | | | | | | | | | | | | | the match object. Based on patch by WGH.
| | * | | 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-042-14/+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
| | | | |
| | * | | Rename struct.unpack() 2nd parameter to "buffer"Victor Stinner2017-02-022-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | | Issue #29300: Convert _struct module to Argument ClinicVictor Stinner2017-02-022-226/+522
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-021-19/+41
| | | | | | | | | | | | | | | | | | | | | | | | | method when unpickle collections.deque and other list-like objects. This can speed up unpickling to 2 times.
| | * | | merge 3.6 (#29398)Benjamin Peterson2017-01-31443-143065/+5908
| | |\ \ \
| | | * \ \ merge 3.6doko2017-01-31443-143065/+5908
| | | |\ \ \
| | | | * | | Issue #29384: Remove Be OS scripts from Modules/, unused in 3.0+Martin Panter2017-01-292-151/+0
| | | | | | |
| | | | * | | Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE whereverSerhiy Storchaka2017-01-233-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | possible but Coccinelle couldn't find opportunity.
| | | | * | | Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE whereverSerhiy Storchaka2017-01-2342-316/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | possible. Patch is writen with Coccinelle.
| | | | * | | Issue #28769: The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8()Serhiy Storchaka2017-01-223-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | is now of type "const char *" rather of "char *".
| | | | * | | Issue #29092: Merge 3.6.Xiang Zhang2017-01-222-4/+6
| | | | |\ \ \
| | | | * | | | Issue #29282: Backed out changeset b33012ef1417Mark Dickinson2017-01-212-77/+1
| | | | | | | |
| | | | * | | | Issue #29282: add fused multiply-add function, math.fma.Mark Dickinson2017-01-212-1/+77
| | | | | | | |
| | | | * | | | Issue #20186: Converted the math module to Argument Clinic.Serhiy Storchaka2017-01-192-247/+923
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch by Tal Einat.
| | | | * | | | Issue #20186: Converted the _operator module to Argument Clinic.Serhiy Storchaka2017-01-192-245/+2428
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch by Tal Einat.
| | | | * | | | Address a minor Coverity warning re: unchecked PyArg_ParseTuple callsGregory P. Smith2017-01-171-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in socket.sendto(). A PyErr_Occurred() check was happening later, but it is better to just use the return value and not call PyErr_Occurred().
| | | | * | | | _hashopenssl uses METH_FASTCALLVictor Stinner2017-01-171-3/+7
| | | | | | | |
| | | | * | | | Run Argument Clinic: METH_VARARGS=>METH_FASTCALLVictor Stinner2017-01-1712-90/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29286. Run Argument Clinic to get the new faster METH_FASTCALL calling convention for functions using "boring" positional arguments. Manually fix _elementtree: _elementtree_XMLParser_doctype() must remain consistent with the clinic code.
| | | | * | | | Run Argument Clinic: METH_VARARGS=>METH_FASTCALLVictor Stinner2017-01-1742-576/+1288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29286. Run Argument Clinic to get the new faster METH_FASTCALL calling convention for functions using only positional arguments.
| | | | * | | | Rename _PyArg_ParseStack to _PyArg_ParseStackAndKeywordsVictor Stinner2017-01-1725-141/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29286.
| | | | * | | | merge 3.6Benjamin Peterson2017-01-161-1/+1
| | | | |\ \ \ \
| | | | * \ \ \ \ Merge doc fixes from 3.6Martin Panter2017-01-141-1/+1
| | | | |\ \ \ \ \
| | | | * | | | | | Issue #29195: Removed support of deprecated undocumented keyword argumentsSerhiy Storchaka2017-01-132-120/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in methods of regular expression objects.
| | | | * | | | | | Py_SIZE() was misused for dict.Serhiy Storchaka2017-01-13376-141188/+729
| | | | |\ \ \ \ \ \
| | | | | * | | | | | Fix typoRaymond Hettinger2017-01-121-1/+1
| | | | | | | | | | |
| | | | | * | | | | | Issue #28969: Fixed race condition in C implementation of functools.lru_cache.Serhiy Storchaka2017-01-121-22/+36
| | | | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | KeyError could be raised when cached function with full cache was simultaneously called from differen threads with the same uncached arguments.
| | | | | * | | | | | | Backed out changeset ea064ff3c10fRaymond Hettinger2017-01-091-6/+0
| | | | | | | | | | | |
| | | | | * | | | | | | While a speedup of 1% is measurable, contexts aren't created that often,Stefan Krah2017-01-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | so let's defer this until 3.7, 3.8, ... all have this new function.
| | | | | * | | | | | | Merge 3.6.Stefan Krah2017-01-09377-141190/+737
| | | | | |\ \ \ \ \ \ \
| | | | | | * \ \ \ \ \ \ Issue #29190: Fixed possible errors in comparing strings in the pickle module.Serhiy Storchaka2017-01-09377-141190/+737
| | | | | | |\ \ \ \ \ \ \
| | | | | | | * | | | | | | Sync-up lru_cache() C code with space saving feature in the Python version.Raymond Hettinger2017-01-081-0/+6
| | | | | | | | | | | | | |
| | | | | | | * | | | | | | Complete the merge for issue #29203Raymond Hettinger2017-01-081-31/+18
| | | | | | | | | | | | | |
| | | | | | | * | | | | | | Issue #29034: Merge 3.6.Xiang Zhang2017-01-081-53/+56
| | | | | | | |\ \ \ \ \ \ \
| | | | | | | * \ \ \ \ \ \ \ Merge 3.6.Stefan Krah2017-01-081-0/+1
| | | | | | | |\ \ \ \ \ \ \ \
| | | | | | | * \ \ \ \ \ \ \ \ Merge 3.6.Stefan Krah2017-01-08377-141191/+732
| | | | | | | |\ \ \ \ \ \ \ \ \
| | | | | | | | * | | | | | | | | Revert part of dbf72357cb4a that is in a rarely used path and causesStefan Krah2017-01-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | maintenance issues (cost/benefit).
| | | | | | | | * | | | | | | | | Revert (unauthorized) parts of 54a89144ee1d which are not in a speed-sensitiveStefan Krah2017-01-081-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | path in order to avoid maintenance issues.
| | | | | | | | * | | | | | | | | Revert (unauthorized) parts of b9eb35435178 which are not in a speed-sensitiveStefan Krah2017-01-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | path and cause maintenance issues (3.6 <-> 3.7, private test suite).
| | | | | | | | * | | | | | | | | Merge 3.6Victor Stinner2017-01-031-5/+5
| | | | | | | | |\ \ \ \ \ \ \ \ \
| | | | | | | | * \ \ \ \ \ \ \ \ \ Fixed possible reference leaks in the _json module.Serhiy Storchaka2017-01-031-4/+9
| | | | | | | | |\ \ \ \ \ \ \ \ \ \