summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Issue #28918: Merge 3.6.Xavier de Gaye2016-12-102-1/+4
|\ \ \ | |/ /
| * | Issue #28918: Fix the cross compilation of xxlimited when PythonXavier de Gaye2016-12-102-1/+4
| | | | | | | | | | | | has been built with Py_DEBUG defined.
* | | Issue #28771: Merge C API doc fix from 3.6Martin Panter2016-12-101-5/+7
|\ \ \ | |/ /
| * | Issue #28771: Merge C API doc fix from 3.5Martin Panter2016-12-101-5/+7
| |\ \ | | |/
| | * Issue #28771: Update tp_get/setattr signature documentationMartin Panter2016-12-101-5/+7
| | |
* | | Issue #28820: Merge typo fixes from 3.6Martin Panter2016-12-103-3/+3
|\ \ \ | |/ /
| * | Fix typos in comment and documentationMartin Panter2016-12-102-2/+2
| | |
| * | Issue #28820: Merge spelling fixes from 3.5Martin Panter2016-12-102-2/+2
| |\ \ | | |/
| | * Issue #28820: Fix spelling of “practice” as a nounMartin Panter2016-12-102-2/+2
| | |
* | | Issue #28755: Merge Arg Clinic howto from 3.6Martin Panter2016-12-101-15/+29
|\ \ \ | |/ /
| * | Issues #28755, #28753: Merge Arg Clinic howto from 3.5Martin Panter2016-12-101-24/+39
| |\ \ | | |/
| | * Issue #28755: Improve syntax highlighting in Arg Clinic howtoMartin Panter2016-12-101-15/+29
| | |
| | * Issue 28753: Argument Clinic howto docfix, courtesy Julien Palard.Martin Panter2016-12-101-14/+15
| | |
* | | Backed out changeset 99c34e47348bVictor Stinner2016-12-092-3/+3
| | | | | | | | | | | | The change broke test_gdb.
* | | Issue #20185: Convert _warnings.warn() to Argument ClinicVictor Stinner2016-12-092-16/+59
| | | | | | | | | | | | Fix warn_explicit(): interpret source=None as source=NULL.
* | | Inline PyEval_EvalFrameEx() in callersVictor Stinner2016-12-092-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | The PEP 523 modified PyEval_EvalFrameEx(): it's now an indirection to interp->eval_frame(). Inline the call in performance critical code. Leave PyEval_EvalFrame() unchanged, this function is only kept for backward compatibility.
* | | Remove useless variable initializationVictor Stinner2016-12-091-9/+6
| | | | | | | | | | | | Don't initialize variables which are not used before they are assigned.
* | | Initialize variables to fix compiler warningsVictor Stinner2016-12-092-4/+4
| | | | | | | | | | | | | | | Warnings seen on the "AMD64 Debian PGO 3.x" buildbot. Warnings are false positive, but variable initialization should not harm performances.
* | | Use PyObject_CallFunctionObjArgs()Victor Stinner2016-12-093-10/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #28915: Replace PyObject_CallFunction() with PyObject_CallFunctionObjArgs() when the format string was only made of "O" formats, PyObject* arguments. PyObject_CallFunctionObjArgs() avoids the creation of a temporary tuple and doesn't have to parse a format string.
* | | Use _PyObject_CallMethodIdObjArgs()Victor Stinner2016-12-096-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #28915: Replace _PyObject_CallMethodId() with _PyObject_CallMethodIdObjArgs() in various modules when the format string was only made of "O" formats, PyObject* arguments. _PyObject_CallMethodIdObjArgs() avoids the creation of a temporary tuple and doesn't have to parse a format string.
* | | Use _PyObject_CallMethodIdObjArgs() in _ioVictor Stinner2016-12-095-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #28915: Replace _PyObject_CallMethodId() with _PyObject_CallMethodIdObjArgs() when the format string was only made of "O" formats, PyObject* arguments. _PyObject_CallMethodIdObjArgs() avoids the creation of a temporary tuple and doesn't have to parse a format string.
* | | Use _PyObject_CallMethodIdObjArgs() in _datetimeVictor Stinner2016-12-091-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #28915: Replace _PyObject_CallMethodId() with _PyObject_CallMethodIdObjArgs() when the format string was only made of "O" formats, PyObject* arguments. _PyObject_CallMethodIdObjArgs() avoids the creation of a temporary tuple and doesn't have to parse a format string.
* | | Use _PyObject_CallMethodIdObjArgs() in _elementtreeVictor Stinner2016-12-091-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #28915: Replace _PyObject_CallMethodId() with _PyObject_CallMethodIdObjArgs() when the format string was only made of "O" formats, PyObject* arguments. _PyObject_CallMethodIdObjArgs() avoids the creation of a temporary tuple and doesn't have to parse a format string.
* | | Use _PyObject_CallMethodIdObjArgs() in _ctypesVictor Stinner2016-12-091-13/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #28915: Replace _PyObject_CallMethodId() with _PyObject_CallMethodIdObjArgs() in unpickle(). _PyObject_CallMethodIdObjArgs() avoids the creation of a temporary tuple and doesn't have to parse a format string. Replace _PyObject_CallMethodId() with _PyObject_GetAttrId()+PyObject_Call() for the second call since it requires to "unpack" a tuple. Add also a check in the type of the second parameter (state): it must be a tuple.
* | | Fix refleak introduced in change 032cbdb596feVictor Stinner2016-12-091-0/+1
| | | | | | | | | | | | Issue #28915.
* | | regrtest --fromfile now accepts a list of filenamesVictor Stinner2016-12-091-8/+6
| | |
* | | Use _PyObject_CallMethodIdObjArgs() in _asyncioVictor Stinner2016-12-091-17/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #28915: Replace _PyObject_CallMethodId() with _PyObject_CallMethodIdObjArgs() when the format string was only made of "O" formats, PyObject* arguments. _PyObject_CallMethodIdObjArgs() avoids the creation of a temporary tuple and doesn't have to parse a format string.
* | | Issue #28915: Use _PyObject_CallNoArg()Victor Stinner2016-12-092-3/+3
| | | | | | | | | | | | Replace PyObject_CallFunction(func, NULL) with _PyObject_CallNoArg(func).
* | | Issue #26937: Merge 3.6.Xavier de Gaye2016-12-092-12/+23
|\ \ \ | |/ /
| * | Issue #26937: The chown() method of the tarfile.TarFile class does not fail nowXavier de Gaye2016-12-092-12/+23
| | | | | | | | | | | | when the grp module cannot be imported, as for example on Android platforms.
* | | Use _PyObject_FastCallVa() in type slotsVictor Stinner2016-12-081-81/+50
| | | | | | | | | | | | | | | Issue #28915: Replace Py_VaBuildValue()+PyObject_Call() with _PyObject_FastCallVa() to avoid the creation of temporary tuple.
* | | Add _PyObject_VaCallFunctionObjArgs() private functionVictor Stinner2016-12-082-5/+11
| | | | | | | | | | | | | | | Issue #28915: Similar to _PyObject_CallFunctionObjArgs() but use va_list to pass arguments.
* | | time_strptime() uses PyObject_Call()Victor Stinner2016-12-081-7/+13
| | | | | | | | | | | | | | | | | | Issue #28915: Use PyObject_Call() to pass a tuple of positional arguments, instead of relying on _PyObject_CallMethodId() weird behaviour to unpack the tuple.
* | | build_struct_time() uses Py_BuildValue()Victor Stinner2016-12-081-11/+20
| | | | | | | | | | | | | | | | | | Issue #28915: Avoid calling _PyObject_CallMethodId() with "(...)" format to avoid the creation of a temporary tuple: use Py_BuildValue() with _PyObject_CallMethodIdObjArgs().
* | | Use _PyObject_CallMethodIdObjArgs()Victor Stinner2016-12-083-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #28915: Replace _PyObject_CallMethodId() with _PyObject_CallMethodIdObjArgs() when the format string only use the format 'O' for objects, like "(O)". _PyObject_CallMethodIdObjArgs() avoids the code to parse a format string and avoids the creation of a temporary tuple.
* | | Don't parenthesis in _PyObject_CallMethodId() formatVictor Stinner2016-12-083-3/+3
| | | | | | | | | | | | | | | Issue #28915: Without parenthesis, _PyObject_CallMethodId() avoids the creation a temporary tuple, and so is more efficient.
* | | _PyObject_CallFunctionVa() uses fast callVictor Stinner2016-12-081-9/+25
| | | | | | | | | | | | | | | | | | | | | | | | Issue #28915: Use _Py_VaBuildStack() to build a C array of PyObject* and then use _PyObject_FastCall(). The function has a special case if the stack only contains one parameter and the parameter is a tuple: "unpack" the tuple of arguments in this case.
* | | Add _Py_VaBuildStack() functionVictor Stinner2016-12-082-0/+111
| | | | | | | | | | | | | | | Issue #28915: Similar to Py_VaBuildValue(), but work on a C array of PyObject*, instead of creating a tuple.
* | | modsupport: replace int with Py_ssize_tVictor Stinner2016-12-081-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | Issue #28915: Py_ssize_t type is better for indexes. The compiler might emit more efficient code for i++. Py_ssize_t is the type of a PyTuple index for example. Replace also "int endchar" with "char endchar".
* | | modsupport: replace int with Py_ssize_tVictor Stinner2016-12-081-17/+20
| | | | | | | | | | | | Issue #28915.
* | | Add _PyObject_CallFunctionVa() helperVictor Stinner2016-12-081-54/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #28915: Add _PyObject_CallFunctionVa() helper to factorize code of functions: * PyObject_CallFunction() * _PyObject_CallFunction_SizeT() * callmethod()
* | | Add _PyObject_FastCallVa() helperVictor Stinner2016-12-081-71/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #28915: Add _PyObject_FastCallVa() helper to factorize code of functions: * PyObject_CallFunctionObjArgs() * PyObject_CallMethodObjArgs() * _PyObject_CallMethodIdObjArgs() Inline objargs_mkstack() into _PyObject_FastCallVa(), remove objargs_mkstack().
* | | Issue #28896: Deprecate WindowsRegistryFinderSteve Dower2016-12-084-0/+18
|\ \ \ | |/ /
| * | Issue #28896: Deprecate WindowsRegistryFinderSteve Dower2016-12-074-0/+21
| | |
* | | Null merge 3.6Victor Stinner2016-12-080-0/+0
|\ \ \ | |/ /
| * | Issue #28770: Update python-gdb.py for fastcallsVictor Stinner2016-11-222-26/+41
| | | | | | | | | | | | | | | | | | | | | | | | Frame.is_other_python_frame() now also handles _PyCFunction_FastCallDict() frames. Thanks to the new code to handle fast calls, python-gdb.py is now also able to detect the <built-in id method of module ...> frame.
* | | Issue #26941: Merge 3.6.Xavier de Gaye2016-12-081-1/+1
|\ \ \ | |/ /
| * | Issue #26941: Fix test_threading that hangs on the Android armv7 qemu emulator.Xavier de Gaye2016-12-081-1/+1
| | |
* | | Issue #26940: Merge 3.6.Xavier de Gaye2016-12-081-1/+1
|\ \ \ | |/ /
| * | Issue #26940: Fix test_importlib that hangs on the Android armv7 qemu emulator.Xavier de Gaye2016-12-081-1/+1
| | |