Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge 3.6 | Victor Stinner | 2017-02-10 | 1 | -21/+40 |
|\ | |||||
| * | Fix datetime.fromtimestamp(): check bounds | Victor Stinner | 2017-02-10 | 1 | -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 Storchaka | 2017-02-09 | 1 | -7/+0 |
| | | |||||
* | | Issue #29513: Fix outdated comment and remove redundand code is os.scandir(). | Serhiy Storchaka | 2017-02-09 | 1 | -7/+3 |
| | | |||||
* | | Optimize deque index, insert and rotate() methods | Victor Stinner | 2017-02-06 | 1 | -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() and | Serhiy Storchaka | 2017-02-06 | 1 | -3/+3 |
| | | | | | | | | _PyArg_NoPositional() now are macros. | ||||
* | | Issue #20186: Regenerated Argument Clinic. | Serhiy Storchaka | 2017-02-05 | 2 | -3/+3 |
| | | |||||
* | | Merge from 3.6 | Steve Dower | 2017-02-05 | 1 | -1/+13 |
|\ \ | |/ | |||||
| * | Adds precheck for console filename to fix Windows 7. | Steve Dower | 2017-02-05 | 1 | -1/+13 |
| | | |||||
* | | Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0]. | Steve Dower | 2017-02-04 | 1 | -2/+12 |
|\ \ | |/ | |||||
| * | Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0]. | Steve Dower | 2017-02-04 | 1 | -2/+12 |
| |\ | |||||
| | * | Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0]. | Steve Dower | 2017-02-04 | 1 | -2/+12 |
| | | | |||||
* | | | Merge issue #28164 and issue #29409 | Steve Dower | 2017-02-04 | 2 | -37/+51 |
|\ \ \ | |/ / | |||||
| * | | Issue #28164: Correctly handle special console filenames (patch by Eryk Sun) | Steve Dower | 2017-02-04 | 1 | -20/+47 |
| | | | |||||
| * | | Issue #29409: Implement PEP 529 for io.FileIO (Patch by Eryk Sun) | Steve Dower | 2017-02-04 | 1 | -17/+14 |
| | | | |||||
* | | | Issue #29444: Fixed out-of-bounds buffer access in the group() method of | Serhiy Storchaka | 2017-02-04 | 1 | -2/+7 |
|\ \ \ | |/ / | | | | | | | the match object. Based on patch by WGH. | ||||
| * | | Issue #29444: Fixed out-of-bounds buffer access in the group() method of | Serhiy Storchaka | 2017-02-04 | 1 | -2/+7 |
| |\ \ | | |/ | | | | | | | the match object. Based on patch by WGH. | ||||
| | * | Issue #29444: Fixed out-of-bounds buffer access in the group() method of | Serhiy Storchaka | 2017-02-04 | 1 | -2/+7 |
| | | | | | | | | | | | | the match object. Based on patch by WGH. | ||||
* | | | Issue #20186: Converted the tracemalloc module to Argument Clinic. | Serhiy Storchaka | 2017-02-04 | 2 | -102/+315 |
| | | | | | | | | | | | | Based on patch by Georg Brandl. | ||||
* | | | Issue #20186: Converted the symtable module to Argument Clinic. | Serhiy Storchaka | 2017-02-04 | 2 | -11/+61 |
| | | | | | | | | | | | | Original patch by Georg Brandl. | ||||
* | | | Removed redundant Argument Clinic directives. | Serhiy Storchaka | 2017-02-04 | 2 | -14/+0 |
| | | | |||||
* | | | Issue #20185: Converted the gc module to Argument Clinic. | Serhiy Storchaka | 2017-02-04 | 2 | -98/+390 |
| | | | |||||
* | | | Issue #29300: Use Argument Clinic for getting struct object from the format. | Serhiy Storchaka | 2017-02-04 | 2 | -83/+103 |
| | | | |||||
* | | | Rename struct.unpack() 2nd parameter to "buffer" | Victor Stinner | 2017-02-02 | 2 | -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 Clinic | Victor Stinner | 2017-02-02 | 2 | -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 Stinner | 2017-02-02 | 1 | -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 Storchaka | 2017-02-02 | 1 | -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 Peterson | 2017-02-01 | 1 | -1/+1 |
|\ \ \ | |/ / | |||||
| * | | merge 3.5 (#29398) | Benjamin Peterson | 2017-02-01 | 1 | -1/+1 |
| |\ \ | | |/ | |||||
| | * | gc types needs to be allocated as such (closes #29398) | Benjamin Peterson | 2017-02-01 | 1 | -1/+1 |
| | | | |||||
* | | | merge 3.6 | doko@ubuntu.com | 2017-01-31 | 28 | -1176/+2105 |
|\ \ \ | |/ / | |||||
| * | | merge 3.5 | doko@ubuntu.com | 2017-01-31 | 28 | -1176/+2105 |
| |\ \ | | |/ | |||||
| | * | - Issue #29169: Update zlib to 1.2.10. | doko@ubuntu.com | 2017-01-31 | 28 | -1176/+2105 |
| | | | |||||
* | | | Issue #29384: Remove Be OS scripts from Modules/, unused in 3.0+ | Martin Panter | 2017-01-29 | 2 | -151/+0 |
| | | | |||||
* | | | Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever | Serhiy Storchaka | 2017-01-23 | 3 | -9/+5 |
| | | | | | | | | | | | | possible but Coccinelle couldn't find opportunity. | ||||
* | | | Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever | Serhiy Storchaka | 2017-01-23 | 42 | -316/+161 |
| | | | | | | | | | | | | possible. Patch is writen with Coccinelle. | ||||
* | | | Issue #28769: The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8() | Serhiy Storchaka | 2017-01-22 | 3 | -3/+3 |
| | | | | | | | | | | | | is now of type "const char *" rather of "char *". | ||||
* | | | Issue #29092: Merge 3.6. | Xiang Zhang | 2017-01-22 | 2 | -4/+6 |
|\ \ \ | |/ / | |||||
| * | | Issue #29092: Sync os.stat's doc and docstring on path type. | Xiang Zhang | 2017-01-22 | 2 | -4/+6 |
| |\ \ | | |/ | |||||
* | | | Issue #29282: Backed out changeset b33012ef1417 | Mark Dickinson | 2017-01-21 | 2 | -77/+1 |
| | | | |||||
* | | | Issue #29282: add fused multiply-add function, math.fma. | Mark Dickinson | 2017-01-21 | 2 | -1/+77 |
| | | | |||||
* | | | Issue #20186: Converted the math module to Argument Clinic. | Serhiy Storchaka | 2017-01-19 | 2 | -247/+923 |
| | | | | | | | | | | | | Patch by Tal Einat. | ||||
* | | | Issue #20186: Converted the _operator module to Argument Clinic. | Serhiy Storchaka | 2017-01-19 | 2 | -245/+2428 |
| | | | | | | | | | | | | Patch by Tal Einat. | ||||
* | | | Address a minor Coverity warning re: unchecked PyArg_ParseTuple calls | Gregory P. Smith | 2017-01-18 | 1 | -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_FASTCALL | Victor Stinner | 2017-01-17 | 1 | -3/+7 |
| | | | |||||
* | | | Run Argument Clinic: METH_VARARGS=>METH_FASTCALL | Victor Stinner | 2017-01-17 | 12 | -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_FASTCALL | Victor Stinner | 2017-01-17 | 42 | -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_ParseStackAndKeywords | Victor Stinner | 2017-01-17 | 25 | -141/+141 |
| | | | | | | | | | | | | Issue #29286. | ||||
* | | | merge 3.6 | Benjamin Peterson | 2017-01-16 | 1 | -1/+1 |
|\ \ \ | |/ / | |||||
| * | | merge 3.5 | Benjamin Peterson | 2017-01-16 | 1 | -1/+1 |
| |\ \ | | |/ |