/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/Modules/_io/ |
D | fileio.c | 222 _io_FileIO___init___impl(fileio *self, PyObject *nameobj, const char *mode, argument 258 if (PyFloat_Check(nameobj)) { 264 fd = _PyLong_AsInt(nameobj); 276 if (!PyUnicode_FSDecoder(nameobj, &stringobj)) { 283 if (!PyUnicode_FSConverter(nameobj, &stringobj)) { 362 if (PySys_Audit("open", "Osi", nameobj, mode, flags) < 0) { 402 fdobj = PyObject_CallFunction(opener, "Oi", nameobj, flags); 427 PyErr_SetFromErrnoWithFilenameObject(PyExc_OSError, nameobj); 462 PyErr_SetFromErrnoWithFilenameObject(PyExc_OSError, nameobj); 477 if (_PyObject_SetAttrId((PyObject *)self, &PyId_name, nameobj) < 0) [all …]
|
D | winconsoleio.c | 260 _io__WindowsConsoleIO___init___impl(winconsoleio *self, PyObject *nameobj, in _io__WindowsConsoleIO___init___impl() argument 284 if (PyFloat_Check(nameobj)) { in _io__WindowsConsoleIO___init___impl() 290 fd = _PyLong_AsInt(nameobj); in _io__WindowsConsoleIO___init___impl() 304 int d = PyUnicode_FSDecoder(nameobj, (void*)&decodedname); in _io__WindowsConsoleIO___init___impl() 380 PyErr_SetExcFromWindowsErrWithFilenameObject(PyExc_OSError, GetLastError(), nameobj); in _io__WindowsConsoleIO___init___impl() 402 if (_PyObject_SetAttrId((PyObject *)self, &PyId_name, nameobj) < 0) in _io__WindowsConsoleIO___init___impl()
|
D | bufferedio.c | 1379 PyObject *nameobj, *res; in buffered_repr() local 1381 if (_PyObject_LookupAttrId((PyObject *) self, &PyId_name, &nameobj) < 0) { in buffered_repr() 1388 if (nameobj == NULL) { in buffered_repr() 1396 Py_TYPE(self)->tp_name, nameobj); in buffered_repr() 1404 Py_DECREF(nameobj); in buffered_repr()
|
D | textio.c | 2845 PyObject *nameobj, *modeobj, *res, *s; in textiowrapper_repr() local 2863 if (_PyObject_LookupAttrId((PyObject *) self, &PyId_name, &nameobj) < 0) { in textiowrapper_repr() 2870 if (nameobj != NULL) { in textiowrapper_repr() 2871 s = PyUnicode_FromFormat(" name=%R", nameobj); in textiowrapper_repr() 2872 Py_DECREF(nameobj); in textiowrapper_repr()
|
/external/python/cpython3/Python/ |
D | import.c | 707 PyObject *nameobj; in _PyImport_FixupBuiltin() local 708 nameobj = PyUnicode_InternFromString(name); in _PyImport_FixupBuiltin() 709 if (nameobj == NULL) in _PyImport_FixupBuiltin() 711 res = _PyImport_FixupExtensionObject(mod, nameobj, nameobj, modules); in _PyImport_FixupBuiltin() 712 Py_DECREF(nameobj); in _PyImport_FixupBuiltin() 779 PyObject *res, *nameobj; in _PyImport_FindBuiltin() local 780 nameobj = PyUnicode_InternFromString(name); in _PyImport_FindBuiltin() 781 if (nameobj == NULL) in _PyImport_FindBuiltin() 783 res = _PyImport_FindExtensionObjectEx(nameobj, nameobj, modules); in _PyImport_FindBuiltin() 784 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/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__() 104 …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__() 105 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/pybind11/include/pybind11/detail/ |
D | class.h | 20 # define PYBIND11_SET_OLDPY_QUALNAME(obj, nameobj) in NAMESPACE_BEGIN() argument 24 # define PYBIND11_SET_OLDPY_QUALNAME(obj, nameobj) setattr((PyObject *) obj, "__qualname__", nameo… in NAMESPACE_BEGIN()
|
/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 | 1288 PyObject *nameobj; in load_library() local 1293 if (!PyArg_ParseTuple(args, "U|i:LoadLibrary", &nameobj, &load_flags)) in load_library() 1296 name = _PyUnicode_AsUnicode(nameobj); in load_library() 1300 if (PySys_Audit("ctypes.dlopen", "O", nameobj) < 0) { in load_library() 1316 nameobj); in load_library()
|
/external/python/cpython3/Modules/ |
D | pyexpat.c | 543 PyObject *modelobj, *nameobj; in my_ElementDeclHandler() local 555 nameobj = string_intern(self, name); in my_ElementDeclHandler() 556 if (nameobj == NULL) { in my_ElementDeclHandler() 561 args = Py_BuildValue("NN", nameobj, modelobj); in my_ElementDeclHandler()
|
/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()
|