summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Optimize methoddescr_call(): avoid temporary PyCFunctionVictor Stinner2017-01-183-26/+40
| | | | | | | | | | | | | | | | | | Issue #29259, #29263. methoddescr_call() creates a PyCFunction object, call it and the destroy it. Add a new _PyMethodDef_RawFastCallDict() method to avoid the temporary PyCFunction object.
* | | Remove unused func parameter of _PyStack_UnpackDict()Victor Stinner2017-01-183-5/+3
| | | | | | | | | | | | Issue #29259.
* | | Issue #28556: merge 5 more typing changes from upstream (#340, #344, #348, ↵Guido van Rossum2017-01-182-12/+76
|\ \ \ | |/ / | | | | | | #349, #350) (3.6->3.7)
| * | Issue #28556: merge 5 more typing changes from upstream (#340, #344, #348, ↵Guido van Rossum2017-01-182-12/+76
| |\ \ | | |/ | | | | | | #349, #350) (3.5->3.6)
| | * Issue #28556: merge 5 more typing changes from upstream (#340, #344, #348, ↵Guido van Rossum2017-01-182-12/+76
| | | | | | | | | | | | #349, #350)
* | | 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
| | |
* | | sorted() uses METH_FASTCALLVictor Stinner2017-01-171-11/+9
| | |
* | | next() uses FASTCALLVictor Stinner2017-01-171-3/+9
| | |
* | | getattr() uses METH_FASTCALLVictor Stinner2017-01-171-3/+8
| | |
* | | Null mergeSerhiy Storchaka2017-01-170-0/+0
|\ \ \ | |/ /
| * | Merge from 3.5.Larry Hastings2017-01-171-1/+2
| |\ \ | | |/
| | * Merge from 3.4.Larry Hastings2017-01-171-0/+1
| | |\
| | | * Post-release updates for 3.4.6.Larry Hastings2017-01-172-2/+14
| | | |
| | | * Added tag v3.4.6 for changeset b662f4776921Larry Hastings2017-01-161-0/+1
| | | |
| | | * Version bump for Python 3.4.6.v3.4.6Larry Hastings2017-01-163-10/+6
| | | |
| | * | Merge 3.5.3 release head with main 3.5 branch.Larry Hastings2017-01-1752-374/+587
| | |\ \
| | * | | Post-release updates for 3.5.3.Larry Hastings2017-01-172-2/+14
| | | | |
| | * | | Added tag v3.5.3 for changeset 1880cb95a742Larry Hastings2017-01-161-0/+1
| | | | |
| | * | | Version bump for Python 3.5.3.v3.5.3Larry Hastings2017-01-163-10/+6
| | | | |
| | * | | Cherry-pick small copyright fix for 3.5.3 final.Larry Hastings2017-01-061-1/+1
| | |\ \ \
* | | | | | Merge from 3.6.Larry Hastings2017-01-171-1/+2
| | | | | |
* | | | | | Issue #29029: Speed up processing positional arguments inSerhiy Storchaka2017-01-171-101/+89
| | | | | | | | | | | | | | | | | | | | | | | | PyArg_ParseTupleAndKeywords(), _PyArg_ParseTupleAndKeywordsFast() and like.
* | | | | | mergeRaymond Hettinger2017-01-173-0/+25
|\ \ \ \ \ \ | |/ / / / /
| * | | | | mergeRaymond Hettinger2017-01-174-0/+27
| |\ \ \ \ \ | | | |_|/ / | | |/| | |
| | * | | | Issue #29011: Fix an important omission by adding Deque to the typing module.Raymond Hettinger2017-01-174-4/+41
| | | | | |
* | | | | | Convert some OrderedDict methods to Argument ClinicVictor Stinner2017-01-172-87/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29289. Convert methods: * fromkeys() class method * setdefault() * popitem() * move_to_end()
* | | | | | Run Argument Clinic: METH_VARARGS=>METH_FASTCALLVictor Stinner2017-01-1719-165/+357
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | Argument Clinic: Use METH_FASTCALL for boring positionalsVictor Stinner2017-01-171-9/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29286. Use METH_FASTCALL calling convention instead of METH_VARARGS to parse "boring" position arguments. METH_FASTCALL is faster since it avoids the creation of a temporary tuple to pass positional arguments. Replace PyArg_UnpackTuple() with _PyArg_UnpackStack()+_PyArg_NoStackKeywords().
* | | | | | Add _PyArg_UnpackStack() function helperVictor Stinner2017-01-172-18/+65
| | | | | | | | | | | | | | | | | | | | | | | | Issue #29286.
* | | | | | Run Argument Clinic: METH_VARARGS=>METH_FASTCALLVictor Stinner2017-01-1752-679/+1515
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29286. Run Argument Clinic to get the new faster METH_FASTCALL calling convention for functions using only positional arguments.
* | | | | | Argument Clinic: Use METH_FASTCALL for positionalsVictor Stinner2017-01-171-14/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29286. Use METH_FASTCALL calling convention instead of METH_VARARGS to parse position arguments. METH_FASTCALL is faster since it avoids the creation of a temporary tuple to pass positional arguments.
* | | | | | _PyStack_UnpackDict() now returns -1 on errorVictor Stinner2017-01-173-14/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29286. Change _PyStack_UnpackDict() prototype to be able to notify of failure when args is NULL.
* | | | | | Add _PyArg_NoStackKeywords() helper functionVictor Stinner2017-01-172-5/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29286. Similar to _PyArg_NoKeywords(), but expects a tuple of keyword names, instead of a dict.
* | | | | | Add _PyArg_ParseStack() helper functionVictor Stinner2017-01-172-24/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29286. Function similar to PyArg_ParseTuple(), but uses a C array of PyObject* to pass arguments. Don't support the compatibility mode.
* | | | | | Rename _PyArg_ParseStack to _PyArg_ParseStackAndKeywordsVictor Stinner2017-01-1738-177/+177
| | | | | | | | | | | | | | | | | | | | | | | | Issue #29286.
* | | | | | Rename keywords to kwargs in getargs.cVictor Stinner2017-01-161-31/+31
| | | | | | | | | | | | | | | | | | | | | | | | Issue #29029. Patch written by Serhiy Storchaka.
* | | | | | type_prepare() now uses fast call (METH_FASTCALL)Victor Stinner2017-01-161-2/+3
| | | | | |
* | | | | | Cleanup getargs.cVictor Stinner2017-01-161-49/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Factorize argument checks in: * vgetargskeywordsfast() * vgetargskeywordsfast_impl()
* | | | | | __build_class__() builtin uses METH_FASTCALLVictor Stinner2017-01-161-15/+9
| | | | | |
* | | | | | Add _PyStack_AsTupleSlice() helperVictor Stinner2017-01-162-0/+29
| | | | | |
* | | | | | Optimize _PyCFunction_FastCallKeywords()Victor Stinner2017-01-162-37/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29259: Write fast path in _PyCFunction_FastCallKeywords() for METH_FASTCALL, avoid the creation of a temporary dictionary for keyword arguments. Cleanup also _PyCFunction_FastCallDict(): * Don't dereference func before checking that it's not NULL * Move code to raise the "no keyword argument" exception into a new no_keyword_error label. Update python-gdb.py for the change.
* | | | | | Issue #20180: forgot to update AC output.INADA Naoki2017-01-162-41/+39
| | | | | |
* | | | | | Issue #20180: convert unicode methods to AC.INADA Naoki2017-01-162-409/+1405
| | | | | |
* | | | | | Issue #26110: Add document for LOAD_METHOD and CALL_METHOD opcode.INADA Naoki2017-01-163-40/+61
| | | | | | | | | | | | | | | | | | | | | | | | Changed stack layout bit for "easy to explain."
* | | | | | merge 3.6Benjamin Peterson2017-01-161-1/+1
|\ \ \ \ \ \ | |/ / / / /
| * | | | | merge 3.5Benjamin Peterson2017-01-161-1/+1
| |\ \ \ \ \ | | |/ / / /
| | * | | | generate spaces instead of tabs into config.cBenjamin Peterson2017-01-161-1/+1
| | | | | |
* | | | | | Closes #29132: Merged fix from 3.6.Vinay Sajip2017-01-152-5/+13
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Fixed #29132: Updated shlex to work better with punctuation chars in POSIX mode.Vinay Sajip2017-01-152-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | Thanks to Evan_ for the report and patch.