/external/python/cpython2/Objects/ |
D | moduleobject.c | 21 PyObject *nameobj; in PyModule_New() local 25 nameobj = PyString_FromString(name); in PyModule_New() 27 if (m->md_dict == NULL || nameobj == NULL) in PyModule_New() 29 if (PyDict_SetItemString(m->md_dict, "__name__", nameobj) != 0) in PyModule_New() 35 Py_DECREF(nameobj); in PyModule_New() 40 Py_XDECREF(nameobj); in PyModule_New() 63 PyObject *nameobj; in PyModule_GetName() local 70 (nameobj = PyDict_GetItemString(d, "__name__")) == NULL || in PyModule_GetName() 71 !PyString_Check(nameobj)) in PyModule_GetName() 76 return PyString_AsString(nameobj); in PyModule_GetName()
|
D | weakrefobject.c | 166 PyObject *nameobj = PyObject_GetAttrString(PyWeakref_GET_OBJECT(self), in weakref_repr() local 168 if (nameobj == NULL) in weakref_repr() 170 else if (PyString_Check(nameobj)) in weakref_repr() 171 name = PyString_AS_STRING(nameobj); in weakref_repr() 187 Py_XDECREF(nameobj); in weakref_repr()
|
D | typeobject.c | 1256 call_method(PyObject *o, char *name, PyObject **nameobj, char *format, ...) in call_method() argument 1262 func = lookup_maybe(o, name, nameobj); in call_method() 1266 PyErr_SetObject(PyExc_AttributeError, *nameobj); in call_method() 1294 call_maybe(PyObject *o, char *name, PyObject **nameobj, char *format, ...) in call_maybe() argument 1300 func = lookup_maybe(o, name, nameobj); in call_maybe()
|
/external/python/cpython2/Modules/_io/ |
D | fileio.c | 145 dircheck(fileio* self, PyObject *nameobj) in dircheck() argument 159 PyErr_SetFromErrnoWithFilenameObject(PyExc_IOError, nameobj); in dircheck() 208 PyObject *nameobj, *stringobj = NULL; in fileio_init() local 233 kwlist, &nameobj, &mode, &closefd)) in fileio_init() 236 if (PyFloat_Check(nameobj)) { in fileio_init() 242 fd = _PyLong_AsInt(nameobj); in fileio_init() 253 if (PyUnicode_Check(nameobj)) { in fileio_init() 254 widename = PyUnicode_AS_UNICODE(nameobj); in fileio_init() 255 if (wcslen(widename) != (size_t)PyUnicode_GET_SIZE(nameobj)) { in fileio_init() 264 if (PyBytes_Check(nameobj) || PyByteArray_Check(nameobj)) { in fileio_init() [all …]
|
D | bufferedio.c | 1212 PyObject *nameobj, *res; in buffered_repr() local 1214 nameobj = PyObject_GetAttrString((PyObject *) self, "name"); in buffered_repr() 1215 if (nameobj == NULL) { in buffered_repr() 1223 PyObject *repr = PyObject_Repr(nameobj); in buffered_repr() 1224 Py_DECREF(nameobj); in buffered_repr()
|
D | textio.c | 2379 PyObject *nameobj, *res; in textiowrapper_repr() local 2384 nameobj = PyObject_GetAttrString((PyObject *) self, "name"); in textiowrapper_repr() 2385 if (nameobj == NULL) { in textiowrapper_repr() 2396 namerepr = PyObject_Repr(nameobj); in textiowrapper_repr() 2400 Py_DECREF(nameobj); in textiowrapper_repr()
|
/external/python/cpython3/Python/ |
D | import.c | 688 PyObject *nameobj; in _PyImport_FixupBuiltin() local 689 nameobj = PyUnicode_InternFromString(name); in _PyImport_FixupBuiltin() 690 if (nameobj == NULL) in _PyImport_FixupBuiltin() 692 res = _PyImport_FixupExtensionObject(mod, nameobj, nameobj, modules); in _PyImport_FixupBuiltin() 693 Py_DECREF(nameobj); in _PyImport_FixupBuiltin() 758 PyObject *res, *nameobj; in _PyImport_FindBuiltin() local 759 nameobj = PyUnicode_InternFromString(name); in _PyImport_FindBuiltin() 760 if (nameobj == NULL) in _PyImport_FindBuiltin() 762 res = _PyImport_FindExtensionObjectEx(nameobj, nameobj, modules); in _PyImport_FindBuiltin() 763 Py_DECREF(nameobj); in _PyImport_FindBuiltin() [all …]
|
/external/python/cpython3/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() 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() [all …]
|
/external/python/cpython3/Modules/_io/ |
D | fileio.c | 220 _io_FileIO___init___impl(fileio *self, PyObject *nameobj, const char *mode, argument 256 if (PyFloat_Check(nameobj)) { 262 fd = _PyLong_AsInt(nameobj); 274 if (!PyUnicode_FSDecoder(nameobj, &stringobj)) { 281 if (!PyUnicode_FSConverter(nameobj, &stringobj)) { 396 fdobj = PyObject_CallFunction(opener, "Oi", nameobj, flags); 421 PyErr_SetFromErrnoWithFilenameObject(PyExc_OSError, nameobj); 456 PyErr_SetFromErrnoWithFilenameObject(PyExc_OSError, nameobj); 471 if (_PyObject_SetAttrId((PyObject *)self, &PyId_name, nameobj) < 0) 1069 PyObject *nameobj, *res; local [all …]
|
D | winconsoleio.c | 259 _io__WindowsConsoleIO___init___impl(winconsoleio *self, PyObject *nameobj, in _io__WindowsConsoleIO___init___impl() argument 283 if (PyFloat_Check(nameobj)) { in _io__WindowsConsoleIO___init___impl() 289 fd = _PyLong_AsInt(nameobj); in _io__WindowsConsoleIO___init___impl() 303 int d = PyUnicode_FSDecoder(nameobj, (void*)&decodedname); in _io__WindowsConsoleIO___init___impl() 379 PyErr_SetExcFromWindowsErrWithFilenameObject(PyExc_OSError, GetLastError(), nameobj); in _io__WindowsConsoleIO___init___impl() 401 if (_PyObject_SetAttrId((PyObject *)self, &PyId_name, nameobj) < 0) in _io__WindowsConsoleIO___init___impl()
|
D | bufferedio.c | 1388 PyObject *nameobj, *res; in buffered_repr() local 1390 nameobj = _PyObject_GetAttrId((PyObject *) self, &PyId_name); in buffered_repr() 1391 if (nameobj == NULL) { in buffered_repr() 1403 Py_TYPE(self)->tp_name, nameobj); in buffered_repr() 1411 Py_DECREF(nameobj); in buffered_repr()
|
D | textio.c | 2765 PyObject *nameobj, *modeobj, *res, *s; in textiowrapper_repr() local 2783 nameobj = _PyObject_GetAttrId((PyObject *) self, &PyId_name); in textiowrapper_repr() 2784 if (nameobj == NULL) { in textiowrapper_repr() 2791 s = PyUnicode_FromFormat(" name=%R", nameobj); in textiowrapper_repr() 2792 Py_DECREF(nameobj); in textiowrapper_repr()
|
/external/python/cpython3/Modules/ |
D | pyexpat.c | 85 PyObject *nameobj; member 144 PyObject *name = hinfo->nameobj; in get_handler_name() 147 hinfo->nameobj = name; in get_handler_name() 553 PyObject *modelobj, *nameobj; in my_ElementDeclHandler() local 565 nameobj = string_intern(self, name); in my_ElementDeclHandler() 566 if (nameobj == NULL) { in my_ElementDeclHandler() 571 args = Py_BuildValue("NN", nameobj, modelobj); in my_ElementDeclHandler() 1262 xmlparse_getattro(xmlparseobject *self, PyObject *nameobj) in xmlparse_getattro() argument 1267 if (!PyUnicode_Check(nameobj)) in xmlparse_getattro() 1269 if (PyUnicode_READY(nameobj)) in xmlparse_getattro() [all …]
|
D | zipimport.c | 956 PyObject *nameobj = NULL; in read_directory() local 1091 nameobj = PyUnicode_Decode(name, name_size, charset, NULL); in read_directory() 1092 if (nameobj == NULL) { in read_directory() 1101 if (PyUnicode_READY(nameobj) == -1) { in read_directory() 1104 path = PyUnicode_FromFormat("%U%c%U", archive, SEP, nameobj); in read_directory() 1113 err = PyDict_SetItem(files, nameobj, t); in read_directory() 1114 Py_CLEAR(nameobj); in read_directory() 1144 Py_XDECREF(nameobj); in read_directory()
|
D | ossaudiodev.c | 925 oss_getattro(oss_audio_t *self, PyObject *nameobj) in oss_getattro() argument 930 if (PyUnicode_Check(nameobj)) { in oss_getattro() 931 name = PyUnicode_AsUTF8(nameobj); in oss_getattro() 959 rval = PyObject_GenericGetAttr((PyObject *)self, nameobj); in oss_getattro()
|
D | _elementtree.c | 3788 xmlparser_getattro(XMLParserObject* self, PyObject* nameobj) in xmlparser_getattro() argument 3790 if (PyUnicode_Check(nameobj)) { in xmlparser_getattro() 3792 if (_PyUnicode_EqualToASCIIString(nameobj, "entity")) in xmlparser_getattro() 3794 else if (_PyUnicode_EqualToASCIIString(nameobj, "target")) in xmlparser_getattro() 3796 else if (_PyUnicode_EqualToASCIIString(nameobj, "version")) { in xmlparser_getattro() 3808 return PyObject_GenericGetAttr((PyObject*) self, nameobj); in xmlparser_getattro()
|
/external/python/cpython3/Modules/_io/clinic/ |
D | winconsoleio.c.h | 43 _io__WindowsConsoleIO___init___impl(winconsoleio *self, PyObject *nameobj, 53 PyObject *nameobj; in _io__WindowsConsoleIO___init__() local 59 &nameobj, &mode, &closefd, &opener)) { in _io__WindowsConsoleIO___init__() 62 …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, 54 PyObject *nameobj; in _io_FileIO___init__() local 60 &nameobj, &mode, &closefd, &opener)) { in _io_FileIO___init__() 63 return_value = _io_FileIO___init___impl((fileio *)self, nameobj, mode, closefd, opener); in _io_FileIO___init__()
|
/external/python/cpython2/Modules/_ctypes/ |
D | callproc.c | 1281 PyObject *nameobj; in load_library() local 1284 if (!PyArg_ParseTuple(args, "O|O:LoadLibrary", &nameobj, &ignored)) in load_library() 1287 name = alloca((PyString_Size(nameobj) + 1) * sizeof(WCHAR)); in load_library() 1295 char *aname = PyString_AsString(nameobj); in load_library() 1298 r = MultiByteToWideChar(CP_ACP, 0, aname, -1, name, PyString_Size(nameobj) + 1); in load_library() 1302 name = PyString_AsString(nameobj); in load_library()
|
/external/python/cpython2/Modules/ |
D | pyexpat.c | 96 PyObject *nameobj; member 154 PyObject *name = hinfo->nameobj; in get_handler_name() 157 hinfo->nameobj = name; in get_handler_name() 721 PyObject *modelobj, *nameobj; in my_ElementDeclHandler() local 737 nameobj = string_intern(self, name); in my_ElementDeclHandler() 738 if (nameobj == NULL) { in my_ElementDeclHandler() 743 args = Py_BuildValue("NN", nameobj, modelobj); in my_ElementDeclHandler()
|
/external/python/cpython3/Modules/_ctypes/ |
D | callproc.c | 1272 PyObject *nameobj; in load_library() local 1276 if (!PyArg_ParseTuple(args, "U|O:LoadLibrary", &nameobj, &ignored)) in load_library() 1279 name = _PyUnicode_AsUnicode(nameobj); in load_library()
|
/external/python/cpython2/Python/ |
D | import.c | 687 PyObject *nameobj, *module; in PyImport_AddModule() local 688 nameobj = PyString_FromString(name); in PyImport_AddModule() 689 if (nameobj == NULL) in PyImport_AddModule() 691 module = _PyImport_AddModuleObject(nameobj); in PyImport_AddModule() 692 Py_DECREF(nameobj); in PyImport_AddModule()
|