Home
last modified time | relevance | path

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

/external/python/cpython3/Tools/c-analyzer/c_analyzer/common/
Dutil.py100 slotnames = cls.__slot_names__
102 slotnames = cls.__slot_names__ = []
103 slotnames.append(name)
104 self._ensure___del__(cls, slotnames)
133 def _ensure___del__(self, cls, slotnames): # See the comment in __init__(). argument
143 for name in slotnames:
/external/python/cpython3/Objects/
Dtypeobject.c4255 PyObject *slotnames; in _PyType_GetSlotNames() local
4262 slotnames = _PyDict_GetItemIdWithError(cls->tp_dict, &PyId___slotnames__); in _PyType_GetSlotNames()
4263 if (slotnames != NULL) { in _PyType_GetSlotNames()
4264 if (slotnames != Py_None && !PyList_Check(slotnames)) { in _PyType_GetSlotNames()
4268 cls->tp_name, Py_TYPE(slotnames)->tp_name); in _PyType_GetSlotNames()
4271 Py_INCREF(slotnames); in _PyType_GetSlotNames()
4272 return slotnames; in _PyType_GetSlotNames()
4288 slotnames = _PyObject_CallMethodIdOneArg(copyreg, &PyId__slotnames, in _PyType_GetSlotNames()
4291 if (slotnames == NULL) in _PyType_GetSlotNames()
4294 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 …]