Lines Matching refs:docstr
33 static PyObject *docstr, *modstr, *namestr; in PyClass_New() local
34 if (docstr == NULL) { in PyClass_New()
35 docstr= PyString_InternFromString("__doc__"); in PyClass_New()
36 if (docstr == NULL) in PyClass_New()
59 if (PyDict_GetItem(dict, docstr) == NULL) { in PyClass_New()
60 if (PyDict_SetItem(dict, docstr, Py_None) < 0) in PyClass_New()
2304 static PyObject *docstr; in instancemethod_get_doc() local
2305 if (docstr == NULL) { in instancemethod_get_doc()
2306 docstr= PyString_InternFromString("__doc__"); in instancemethod_get_doc()
2307 if (docstr == NULL) in instancemethod_get_doc()
2310 return PyObject_GetAttr(im->im_func, docstr); in instancemethod_get_doc()