/third_party/python/Modules/_io/ |
D | fileio.c | 222 _io_FileIO___init___impl(fileio *self, PyObject *nameobj, const char *mode, argument 258 fd = _PyLong_AsInt(nameobj); 270 if (!PyUnicode_FSDecoder(nameobj, &stringobj)) { 284 if (!PyUnicode_FSConverter(nameobj, &stringobj)) { 363 if (PySys_Audit("open", "Osi", nameobj, mode, flags) < 0) { 403 fdobj = PyObject_CallFunction(opener, "Oi", nameobj, flags); 428 PyErr_SetFromErrnoWithFilenameObject(PyExc_OSError, nameobj); 463 PyErr_SetFromErrnoWithFilenameObject(PyExc_OSError, nameobj); 478 if (_PyObject_SetAttrId((PyObject *)self, &PyId_name, nameobj) < 0) 1082 PyObject *nameobj, *res; local [all …]
|
D | winconsoleio.c | 251 _io__WindowsConsoleIO___init___impl(winconsoleio *self, PyObject *nameobj, in _io__WindowsConsoleIO___init___impl() argument 276 fd = _PyLong_AsInt(nameobj); in _io__WindowsConsoleIO___init___impl() 290 int d = PyUnicode_FSDecoder(nameobj, (void*)&decodedname); in _io__WindowsConsoleIO___init___impl() 364 PyErr_SetExcFromWindowsErrWithFilenameObject(PyExc_OSError, GetLastError(), nameobj); in _io__WindowsConsoleIO___init___impl() 374 PyErr_SetFromErrnoWithFilenameObject(PyExc_OSError, nameobj); in _io__WindowsConsoleIO___init___impl() 396 if (_PyObject_SetAttrId((PyObject *)self, &PyId_name, nameobj) < 0) in _io__WindowsConsoleIO___init___impl()
|
D | bufferedio.c | 1383 PyObject *nameobj, *res; in buffered_repr() local 1385 if (_PyObject_LookupAttrId((PyObject *) self, &PyId_name, &nameobj) < 0) { in buffered_repr() 1392 if (nameobj == NULL) { in buffered_repr() 1400 Py_TYPE(self)->tp_name, nameobj); in buffered_repr() 1408 Py_DECREF(nameobj); in buffered_repr()
|
D | textio.c | 2898 PyObject *nameobj, *modeobj, *res, *s; in textiowrapper_repr() local 2916 if (_PyObject_LookupAttrId((PyObject *) self, &PyId_name, &nameobj) < 0) { in textiowrapper_repr() 2923 if (nameobj != NULL) { in textiowrapper_repr() 2924 s = PyUnicode_FromFormat(" name=%R", nameobj); in textiowrapper_repr() 2925 Py_DECREF(nameobj); in textiowrapper_repr()
|
/third_party/python/Objects/ |
D | moduleobject.c | 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() 252 PyObject *nameobj; in PyModule_FromDefAndSpec2() local 260 nameobj = PyObject_GetAttrString(spec, "name"); in PyModule_FromDefAndSpec2() 261 if (nameobj == NULL) { in PyModule_FromDefAndSpec2() 264 name = PyUnicode_AsUTF8(nameobj); in PyModule_FromDefAndSpec2() 321 m = PyModule_NewObject(nameobj); in PyModule_FromDefAndSpec2() [all …]
|
/third_party/python/Python/ |
D | import.c | 489 PyObject *nameobj; in _PyImport_FixupBuiltin() local 490 nameobj = PyUnicode_InternFromString(name); in _PyImport_FixupBuiltin() 491 if (nameobj == NULL) in _PyImport_FixupBuiltin() 493 res = _PyImport_FixupExtensionObject(mod, nameobj, nameobj, modules); in _PyImport_FixupBuiltin() 494 Py_DECREF(nameobj); in _PyImport_FixupBuiltin() 645 PyObject *nameobj = PyUnicode_FromString(name); in PyImport_AddModule() local 646 if (nameobj == NULL) { in PyImport_AddModule() 649 PyObject *module = PyImport_AddModuleObject(nameobj); in PyImport_AddModule() 650 Py_DECREF(nameobj); in PyImport_AddModule() 711 PyObject *nameobj, *pathobj = NULL, *cpathobj = NULL, *external= NULL; in PyImport_ExecCodeModuleWithPathnames() local [all …]
|
/third_party/python/Modules/_io/clinic/ |
D | winconsoleio.c.h | 43 _io__WindowsConsoleIO___init___impl(winconsoleio *self, PyObject *nameobj, 57 PyObject *nameobj; in _io__WindowsConsoleIO___init__() local 66 nameobj = fastargs[0]; in _io__WindowsConsoleIO___init__() 99 …return_value = _io__WindowsConsoleIO___init___impl((winconsoleio *)self, nameobj, mode, closefd, o… in _io__WindowsConsoleIO___init__()
|
D | fileio.c.h | 45 _io_FileIO___init___impl(fileio *self, PyObject *nameobj, const char *mode, 58 PyObject *nameobj; in _io_FileIO___init__() local 67 nameobj = fastargs[0]; in _io_FileIO___init__() 100 return_value = _io_FileIO___init___impl((fileio *)self, nameobj, mode, closefd, opener); in _io_FileIO___init__()
|
/third_party/python/Modules/_ctypes/ |
D | callproc.c | 1348 PyObject *nameobj; in load_library() local 1353 if (!PyArg_ParseTuple(args, "U|i:LoadLibrary", &nameobj, &load_flags)) in load_library() 1356 if (PySys_Audit("ctypes.dlopen", "O", nameobj) < 0) { in load_library() 1360 WCHAR *name = PyUnicode_AsWideCharString(nameobj, NULL); in load_library() 1378 nameobj); in load_library()
|
/third_party/python/Modules/ |
D | pyexpat.c | 552 PyObject *modelobj, *nameobj; in my_ElementDeclHandler() local 564 nameobj = string_intern(self, name); in my_ElementDeclHandler() 565 if (nameobj == NULL) { in my_ElementDeclHandler() 570 args = Py_BuildValue("NN", nameobj, modelobj); in my_ElementDeclHandler()
|