Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_funcattrs.py314 docstr = "A test method that does nothing"
315 self.b.__doc__ = self.f.a.im_func.__doc__ = docstr
316 self.assertEqual(self.b.__doc__, docstr)
317 self.assertEqual(self.b.func_doc, docstr)
318 self.assertEqual(self.f.a.__doc__, docstr)
319 self.assertEqual(self.fi.a.__doc__, docstr)
320 self.cannot_set_attr(self.f.a, "__doc__", docstr, AttributeError)
321 self.cannot_set_attr(self.fi.a, "__doc__", docstr, AttributeError)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dclassobject.c33 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()
2282 static PyObject *docstr; in instancemethod_get_doc() local
2283 if (docstr == NULL) { in instancemethod_get_doc()
2284 docstr= PyString_InternFromString("__doc__"); in instancemethod_get_doc()
2285 if (docstr == NULL) in instancemethod_get_doc()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dclassobject.c33 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()
2306 static PyObject *docstr; in instancemethod_get_doc() local
2307 if (docstr == NULL) { in instancemethod_get_doc()
2308 docstr= PyString_InternFromString("__doc__"); in instancemethod_get_doc()
2309 if (docstr == NULL) in instancemethod_get_doc()
[all …]