cpython/Modules/_ctypes
Victor Stinner 5670764812 Use _PyObject_CallMethodIdObjArgs() in _ctypes
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.
2016-12-09 15:18:31 +01:00
..
darwin
libffi_msvc Issue #20160: Merged fix from 3.4. 2016-08-05 21:44:15 +01:00
libffi_osx Issue #24381: Avoid unused function warning when building bundled macOS libffi. 2016-10-20 15:38:27 -04:00
_ctypes.c Use _PyObject_CallNoArg() 2016-12-06 18:46:19 +01:00
_ctypes_test.c more PY_LONG_LONG to long long 2016-09-08 09:15:54 -07:00
_ctypes_test.h
callbacks.c Issue #28915: Use _PyObject_CallNoArg() 2016-12-09 12:29:18 +01:00
callproc.c Use _PyObject_CallMethodIdObjArgs() in _ctypes 2016-12-09 15:18:31 +01:00
cfield.c more PY_LONG_LONG to long long 2016-09-08 09:15:54 -07:00
ctypes.h fix a PY_LONG_LONG straggler 2016-09-08 09:25:03 -07:00
ctypes_dlfcn.h Remove outdated PEP 291 compatibility requirement comment 2016-05-14 05:55:38 +00:00
malloc_closure.c
stgdict.c Use _PyObject_CallNoArg() 2016-12-06 18:45:50 +01:00