Home
last modified time | relevance | path

Searched refs:_PyObject_LookupAttrId (Results 1 – 22 of 22) sorted by relevance

/external/python/cpython3/Python/
DPython-ast.c544 if (_PyObject_LookupAttrId((PyObject*)Py_TYPE(self), &PyId__fields, &fields) < 0) { in ast_type_init()
593 if (_PyObject_LookupAttrId(self, &PyId___dict__, &dict) < 0) { in ast_type_reduce()
3960 if (_PyObject_LookupAttrId(obj, &PyId_body, &tmp) < 0) { in obj2ast_mod()
4001 if (_PyObject_LookupAttrId(obj, &PyId_body, &tmp) < 0) { in obj2ast_mod()
4042 if (_PyObject_LookupAttrId(obj, &PyId_body, &tmp) < 0) { in obj2ast_mod()
4066 if (_PyObject_LookupAttrId(obj, &PyId_body, &tmp) < 0) { in obj2ast_mod()
4120 if (_PyObject_LookupAttrId(obj, &PyId_lineno, &tmp) < 0) { in obj2ast_stmt()
4133 if (_PyObject_LookupAttrId(obj, &PyId_col_offset, &tmp) < 0) { in obj2ast_stmt()
4157 if (_PyObject_LookupAttrId(obj, &PyId_name, &tmp) < 0) { in obj2ast_stmt()
4170 if (_PyObject_LookupAttrId(obj, &PyId_args, &tmp) < 0) { in obj2ast_stmt()
[all …]
D_warnings.c90 (void)_PyObject_LookupAttrId(warnings_module, attr_id, &obj); in get_warnings_attr()
904 (void)_PyObject_LookupAttrId(loader, &PyId_get_source, &get_source); in get_source_line()
Dbltinmodule.c74 if (_PyObject_LookupAttrId(base, &PyId___mro_entries__, &meth) < 0) { in update_bases()
219 if (_PyObject_LookupAttrId(meta, &PyId___prepare__, &prep) < 0) { in builtin___build_class__()
Dcodecs.c543 if (_PyObject_LookupAttrId(codec, &PyId__is_text_encoding, &attr) < 0) { in _PyCodec_LookupTextEncoding()
Dceval.c4869 if (_PyObject_LookupAttrId(v, &PyId___all__, &all) < 0) { in import_all_from()
4873 if (_PyObject_LookupAttrId(v, &PyId___dict__, &dict) < 0) { in import_all_from()
/external/python/cpython3/Objects/
Dclassobject.c249 if (_PyObject_LookupAttrId(func, &PyId___qualname__, &funcname) < 0 || in method_repr()
251 _PyObject_LookupAttrId(func, &PyId___name__, &funcname) < 0)) in method_repr()
543 if (_PyObject_LookupAttrId(func, &PyId___name__, &funcname) < 0) { in instancemethod_repr()
Dabstract.c177 if (_PyObject_LookupAttrId(o, &PyId___class_getitem__, &meth) < 0) { in PyObject_GetItem()
2272 (void)_PyObject_LookupAttrId(cls, &PyId___bases__, &bases); in abstract_get_bases()
2343 retval = _PyObject_LookupAttrId(inst, &PyId___class__, &icls); in recursive_isinstance()
2361 retval = _PyObject_LookupAttrId(inst, &PyId___class__, &icls); in recursive_isinstance()
Dodictobject.c2236 if (_PyObject_LookupAttrId(other, &PyId_keys, &func) < 0) { in mutablemapping_update()
2272 if (_PyObject_LookupAttrId(other, &PyId_items, &func) < 0) { in mutablemapping_update()
Dgenobject.c315 if (_PyObject_LookupAttrId(yf, &PyId_close, &meth) < 0) { in gen_close_iter()
432 if (_PyObject_LookupAttrId(yf, &PyId_throw, &meth) < 0) { in _gen_throw()
Dobject.c859 res = _PyObject_LookupAttrId(obj, &PyId___isabstractmethod__, &isabstract); in _PyObject_IsAbstract()
975 _PyObject_LookupAttrId(PyObject *v, _Py_Identifier *name, PyObject **result) in _PyObject_LookupAttrId() function
Dtypeobject.c2409 if (_PyObject_LookupAttrId(tmp, &PyId___mro_entries__, &tmp) < 0) { in type_new()
4114 if (_PyObject_LookupAttrId(obj, &PyId___getstate__, &getstate) < 0) { in _PyObject_GetState()
Ddictobject.c2245 if (_PyObject_LookupAttrId(arg, &PyId_keys, &func) < 0) { in dict_update_common()
/external/python/cpython3/Modules/
D_pickle.c370 ret = _PyObject_LookupAttrId(self, name, &func); in init_method_ref()
1154 if (_PyObject_LookupAttrId(file, &PyId_write, &self->write) < 0) { in _Pickler_SetOutputStream()
1506 if (_PyObject_LookupAttrId(file, &PyId_peek, &self->peek) < 0) { in _Unpickler_SetInputStream()
1509 (void)_PyObject_LookupAttrId(file, &PyId_read, &self->read); in _Unpickler_SetInputStream()
1510 (void)_PyObject_LookupAttrId(file, &PyId_readline, &self->readline); in _Unpickler_SetInputStream()
1761 if (_PyObject_LookupAttrId(global, &PyId___module__, &module_name) < 0) { in whichmodule()
3313 if (_PyObject_LookupAttrId(obj, &PyId___qualname__, &global_name) < 0) in save_global()
3639 if (_PyObject_LookupAttrId(obj, &PyId___class__, &cls) == 0) { in get_class()
3713 if (_PyObject_LookupAttrId(callable, &PyId___name__, &name) < 0) { in save_reduce()
4086 if (_PyObject_LookupAttrId(obj, &PyId___reduce_ex__, &reduce_func) < 0) { in save()
[all …]
D_abc.c327 if (_PyObject_LookupAttrId(item, &PyId___abstractmethods__, in compute_abstract_methods()
D_collectionsmodule.c1352 if (_PyObject_LookupAttrId((PyObject *)deque, &PyId___dict__, &dict) < 0) { in deque_reduce()
Darraymodule.c2211 if (_PyObject_LookupAttrId((PyObject *)self, &PyId___dict__, &dict) < 0) { in array_array___reduce_ex__()
D_asynciomodule.c212 if (_PyObject_LookupAttrId(fut, &PyId_get_loop, &getloop) < 0) { in get_future_loop()
Ditertoolsmodule.c833 if (_PyObject_LookupAttrId(it, &PyId___copy__, &copyfunc) < 0) { in tee()
/external/python/cpython3/Modules/_io/
Diobase.c139 ret = _PyObject_LookupAttrId(self, &PyId___IOBase_closed, &res); in iobase_is_closed()
Dfileio.c1074 if (_PyObject_LookupAttrId((PyObject *) self, &PyId_name, &nameobj) < 0) {
Dtextio.c930 if (_PyObject_LookupAttrId(codec_info, &PyId_name, &res) < 0) { in _textiowrapper_set_encoder()
1181 if (_PyObject_LookupAttrId(buffer, &PyId_raw, &raw) < 0) in _io_TextIOWrapper___init___impl()
/external/python/cpython3/Include/
Dobject.h553 PyAPI_FUNC(int) _PyObject_LookupAttrId(PyObject *, struct _Py_Identifier *, PyObject **);