Home
last modified time | relevance | path

Searched refs:docstr (Results 1 – 5 of 5) sorted by relevance

/third_party/python/Objects/
Dclassobject.c162 static PyObject *docstr; in method_get_doc() local
163 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() local
411 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()
/third_party/python/Lib/test/
Dtest_funcattrs.py355 docstr = "A test method that does nothing"
356 self.b.__doc__ = docstr
357 self.F.a.__doc__ = docstr
358 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)
/third_party/python/Lib/
Dturtle.py3916 def _turtle_docrevise(docstr): argument
3920 if docstr is None:
3923 newdocstr = docstr.replace("%s." % turtlename,"")
3928 def _screen_docrevise(docstr): argument
3932 if docstr is None:
3935 newdocstr = docstr.replace("%s." % screenname,"")
/third_party/python/Tools/c-analyzer/
DTODO192 Objects/classobject.c:instancemethod_get_doc():docstr static PyObject *docstr
193 Objects/classobject.c:method_get_doc():docstr static PyObject *docstr
/third_party/python/Tools/c-analyzer/cpython/
Dignored.tsv2036 Objects/classobject.c method_get_doc docstr -
2037 Objects/classobject.c instancemethod_get_doc docstr -