Home
last modified time | relevance | path

Searched refs:slotnames (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Objects/
Dtypeobject.c4058 PyObject *slotnames; in _PyType_GetSlotNames() local
4065 slotnames = _PyDict_GetItemIdWithError(cls->tp_dict, &PyId___slotnames__); in _PyType_GetSlotNames()
4066 if (slotnames != NULL) { in _PyType_GetSlotNames()
4067 if (slotnames != Py_None && !PyList_Check(slotnames)) { in _PyType_GetSlotNames()
4071 cls->tp_name, Py_TYPE(slotnames)->tp_name); in _PyType_GetSlotNames()
4074 Py_INCREF(slotnames); in _PyType_GetSlotNames()
4075 return slotnames; in _PyType_GetSlotNames()
4091 slotnames = _PyObject_CallMethodIdObjArgs(copyreg, &PyId__slotnames, in _PyType_GetSlotNames()
4094 if (slotnames == NULL) in _PyType_GetSlotNames()
4097 if (slotnames != Py_None && !PyList_Check(slotnames)) { in _PyType_GetSlotNames()
[all …]
/external/python/cpython2/Objects/
Dtypeobject.c3273 slotnames(PyObject *cls) in slotnames() function
3277 PyObject *slotnames; in slotnames() local
3285 slotnames = PyDict_GetItemString(clsdict, "__slotnames__"); in slotnames()
3286 if (slotnames != NULL && PyList_Check(slotnames)) { in slotnames()
3287 Py_INCREF(slotnames); in slotnames()
3288 return slotnames; in slotnames()
3295 slotnames = PyObject_CallMethod(copyreg, "_slotnames", "O", cls); in slotnames()
3297 if (slotnames != NULL && in slotnames()
3298 slotnames != Py_None && in slotnames()
3299 !PyList_Check(slotnames)) in slotnames()
[all …]