summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Merge 3.6Victor Stinner2017-02-101-21/+40
|\
| * Fix datetime.fromtimestamp(): check boundsVictor Stinner2017-02-101-21/+40
| | | | | | | | | | Issue #29100: Fix datetime.fromtimestamp() regression introduced in Python 3.6.0: check minimum and maximum years.
| * Issue #29513: Fixed a reference leak in os.scandir() added in issue #29034.Serhiy Storchaka2017-02-091-7/+0
| |
* | Issue #29513: Fix outdated comment and remove redundand code is os.scandir().Serhiy Storchaka2017-02-091-7/+3
| |
* | 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
* | Issue #29460: _PyArg_NoKeywords(), _PyArg_NoStackKeywords() andSerhiy Storchaka2017-02-061-3/+3
| | | | | | | | _PyArg_NoPositional() now are macros.
* | Issue #20186: Regenerated Argument Clinic.Serhiy Storchaka2017-02-052-3/+3
| |
* | Merge from 3.6Steve Dower2017-02-051-1/+13
|\ \ | |/
| * Adds precheck for console filename to fix Windows 7.Steve Dower2017-02-051-1/+13
| |
* | Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0].Steve Dower2017-02-041-2/+12
|\ \ | |/
| * Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0].Steve Dower2017-02-041-2/+12
| |\
| | * 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 #28164: Correctly handle special console filenames (patch by Eryk Sun)Steve Dower2017-02-041-20/+47
| | |
| * | Issue #29409: Implement PEP 529 for io.FileIO (Patch by Eryk Sun)Steve Dower2017-02-041-17/+14
| | |
* | | Issue #29444: Fixed out-of-bounds buffer access in the group() method ofSerhiy Storchaka2017-02-041-2/+7
|\ \ \ | |/ / | | | | | | the match object. Based on patch by WGH.
| * | Issue #29444: Fixed out-of-bounds buffer access in the group() method ofSerhiy Storchaka2017-02-041-2/+7
| |\ \ | | |/ | | | | | | the match object. Based on patch by WGH.
| | * Issue #29444: Fixed out-of-bounds buffer access in the group() method ofSerhiy Storchaka2017-02-041-2/+7
| | | | | | | | | | | | 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-02-011-1/+1
|\ \ \ | |/ /
| * | merge 3.5 (#29398)Benjamin Peterson2017-02-011-1/+1
| |\ \ | | |/
| | * gc types needs to be allocated as such (closes #29398)Benjamin Peterson2017-02-011-1/+1
| | |
* | | merge 3.6doko@ubuntu.com2017-01-3128-1176/+2105
|\ \ \ | |/ /
| * | merge 3.5doko@ubuntu.com2017-01-3128-1176/+2105
| |\ \ | | |/
| | * - Issue #29169: Update zlib to 1.2.10.doko@ubuntu.com2017-01-3128-1176/+2105
| | |
* | | 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 #29092: Sync os.stat's doc and docstring on path type.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-181-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 3.5Benjamin Peterson2017-01-161-1/+1
| |\ \ | | |/