Searched refs:docstr (Results 1 – 5 of 5) sorted by relevance
162 static PyObject *docstr; in method_get_doc() local163 if (docstr == NULL) { in method_get_doc()164 docstr= PyUnicode_InternFromString("__doc__"); in method_get_doc()165 if (docstr == NULL) in method_get_doc()168 return PyObject_GetAttr(im->im_func, docstr); in method_get_doc()410 static PyObject *docstr; in instancemethod_get_doc() local411 if (docstr == NULL) { in instancemethod_get_doc()412 docstr = PyUnicode_InternFromString("__doc__"); in instancemethod_get_doc()413 if (docstr == NULL) in instancemethod_get_doc()416 return PyObject_GetAttr(PyInstanceMethod_GET_FUNCTION(self), docstr); in instancemethod_get_doc()
355 docstr = "A test method that does nothing"356 self.b.__doc__ = docstr357 self.F.a.__doc__ = docstr358 self.assertEqual(self.b.__doc__, docstr)359 self.assertEqual(self.fi.a.__doc__, docstr)360 self.cannot_set_attr(self.fi.a, "__doc__", docstr, AttributeError)
3916 def _turtle_docrevise(docstr): argument3920 if docstr is None:3923 newdocstr = docstr.replace("%s." % turtlename,"")3928 def _screen_docrevise(docstr): argument3932 if docstr is None:3935 newdocstr = docstr.replace("%s." % screenname,"")
192 Objects/classobject.c:instancemethod_get_doc():docstr static PyObject *docstr193 Objects/classobject.c:method_get_doc():docstr static PyObject *docstr
2036 Objects/classobject.c method_get_doc docstr -2037 Objects/classobject.c instancemethod_get_doc docstr -