Lines Matching refs:nameobj
116 PyObject *nameobj, *module; in PyModule_New() local
117 nameobj = PyUnicode_FromString(name); in PyModule_New()
118 if (nameobj == NULL) in PyModule_New()
120 module = PyModule_NewObject(nameobj); in PyModule_New()
121 Py_DECREF(nameobj); in PyModule_New()
249 PyObject *nameobj; in PyModule_FromDefAndSpec2() local
257 nameobj = PyObject_GetAttrString(spec, "name"); in PyModule_FromDefAndSpec2()
258 if (nameobj == NULL) { in PyModule_FromDefAndSpec2()
261 name = PyUnicode_AsUTF8(nameobj); in PyModule_FromDefAndSpec2()
318 m = PyModule_NewObject(nameobj); in PyModule_FromDefAndSpec2()
346 ret = _add_methods_to_object(m, nameobj, def->m_methods); in PyModule_FromDefAndSpec2()
369 Py_DECREF(nameobj); in PyModule_FromDefAndSpec2()
373 Py_DECREF(nameobj); in PyModule_FromDefAndSpec2()