• Victor Stinner's avatar
    Use _PyObject_CallMethodIdObjArgs() in _ctypes · 56707648
    Victor Stinner yazdı
    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.
    56707648
Adı
Son kayıt (commit)
Son güncelleme
..
darwin Loading commit data...
libffi_msvc Loading commit data...
libffi_osx Loading commit data...
_ctypes.c Loading commit data...
_ctypes_test.c Loading commit data...
_ctypes_test.h Loading commit data...
callbacks.c Loading commit data...
callproc.c Loading commit data...
cfield.c Loading commit data...
ctypes.h Loading commit data...
ctypes_dlfcn.h Loading commit data...
malloc_closure.c Loading commit data...
stgdict.c Loading commit data...