Searched refs:getnewargs (Results 1 – 2 of 2) sorted by relevance
4251 PyObject *getnewargs, *getnewargs_ex; in _PyObject_GetNewArguments() local4315 getnewargs = _PyObject_LookupSpecial(obj, &PyId___getnewargs__); in _PyObject_GetNewArguments()4316 if (getnewargs != NULL) { in _PyObject_GetNewArguments()4317 *args = _PyObject_CallNoArg(getnewargs); in _PyObject_GetNewArguments()4318 Py_DECREF(getnewargs); in _PyObject_GetNewArguments()
3313 PyObject *cls, *getnewargs; in reduce_2() local3332 getnewargs = PyObject_GetAttrString(obj, "__getnewargs__"); in reduce_2()3333 if (getnewargs != NULL) { in reduce_2()3334 args = PyObject_CallObject(getnewargs, NULL); in reduce_2()3335 Py_DECREF(getnewargs); in reduce_2()