Home | History | Annotate | Download | only in Objects

Lines Matching refs:slotnames

4058     PyObject *slotnames;
4065 slotnames = _PyDict_GetItemIdWithError(cls->tp_dict, &PyId___slotnames__);
4066 if (slotnames != NULL) {
4067 if (slotnames != Py_None && !PyList_Check(slotnames)) {
4071 cls->tp_name, Py_TYPE(slotnames)->tp_name);
4074 Py_INCREF(slotnames);
4075 return slotnames;
4091 slotnames = _PyObject_CallMethodIdObjArgs(copyreg, &PyId__slotnames,
4094 if (slotnames == NULL)
4097 if (slotnames != Py_None && !PyList_Check(slotnames)) {
4100 Py_DECREF(slotnames);
4104 return slotnames;
4118 PyObject *slotnames;
4144 slotnames = _PyType_GetSlotNames(Py_TYPE(obj));
4145 if (slotnames == NULL) {
4150 assert(slotnames == Py_None || PyList_Check(slotnames));
4157 if (slotnames != Py_None)
4158 basicsize += sizeof(PyObject *) * PyList_GET_SIZE(slotnames);
4160 Py_DECREF(slotnames);
4169 if (slotnames != Py_None && PyList_GET_SIZE(slotnames) > 0) {
4175 Py_DECREF(slotnames);
4180 slotnames_size = PyList_GET_SIZE(slotnames);
4184 name = PyList_GET_ITEM(slotnames, i);
4204 if (slotnames_size != PyList_GET_SIZE(slotnames)) {
4213 Py_DECREF(slotnames);
4228 Py_DECREF(slotnames);
4236 Py_DECREF(slotnames);