diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-12-09 15:18:31 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-12-09 15:18:31 +0100 |
commit | 56707648120de77a5167c363cc4104dfe2cef5be (patch) | |
tree | 505f07e4094676895b21139be187b1c5c165d985 /Python/marshal.c | |
parent | ddc120f4cf6fb049570d5483bb7678491d27b3d5 (diff) | |
download | cpython-git-56707648120de77a5167c363cc4104dfe2cef5be.tar.gz |
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.
Diffstat (limited to 'Python/marshal.c')
0 files changed, 0 insertions, 0 deletions