Home | History | Annotate | Download | only in Objects

Lines Matching refs:tp_doc

595     if (!(type->tp_flags & Py_TPFLAGS_HEAPTYPE) && type->tp_doc != NULL)
596 return PyString_FromString(type->tp_doc);
2413 /* Set tp_doc to a copy of dict['__doc__'], if the latter is there
2414 and is a string. The __doc__ accessor will first look for tp_doc;
2421 char *tp_doc = (char *)PyObject_MALLOC(n+1);
2422 if (tp_doc == NULL) {
2426 memcpy(tp_doc, PyString_AS_STRING(doc), n+1);
2427 type->tp_doc = tp_doc;
2758 /* A type's tp_doc is heap allocated, unlike the tp_doc slots
2761 PyObject_Free((char *)type->tp_doc);
2901 type_doc, /* tp_doc */
3702 PyDoc_STR("The most base type"), /* tp_doc */
4267 the tp_doc slot.
4270 if (type->tp_doc != NULL) {
4271 PyObject *doc = PyString_FromString(type->tp_doc);
6893 super_doc, /* tp_doc */