Home
last modified time | relevance | path

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

/external/python/cpython2/Python/
Derrors.c685 char* modstr = PyString_AsString(moduleName); in PyErr_WriteUnraisable() local
686 if (modstr && in PyErr_WriteUnraisable()
687 strcmp(modstr, "exceptions") != 0) in PyErr_WriteUnraisable()
689 PyFile_WriteString(modstr, f); in PyErr_WriteUnraisable()
Dpythonrun.c1289 char* modstr = PyString_AsString(moduleName); in PyErr_Display() local
1290 if (modstr && strcmp(modstr, "exceptions")) in PyErr_Display()
1292 err = PyFile_WriteString(modstr, f); in PyErr_Display()
/external/python/cpython2/Objects/
Dclassobject.c33 static PyObject *docstr, *modstr, *namestr; in PyClass_New() local
39 if (modstr == NULL) { in PyClass_New()
40 modstr= PyString_InternFromString("__module__"); in PyClass_New()
41 if (modstr == NULL) in PyClass_New()
63 if (PyDict_GetItem(dict, modstr) == NULL) { in PyClass_New()
68 if (PyDict_SetItem(dict, modstr, modname) < 0) in PyClass_New()