/third_party/python/Python/ |
H A D | Python-ast.c | 831 res = PyObject_SetAttr(self, name, PyTuple_GET_ITEM(args, i)); in ast_type_init() 858 res = PyObject_SetAttr(self, key, value); in ast_type_init() 969 result = PyObject_SetAttr(type, state->_attributes, l) >= 0; in add_attributes() 1162 if (PyObject_SetAttr(state->stmt_type, state->end_lineno, Py_None) == -1) in init_types() 1164 if (PyObject_SetAttr(state->stmt_type, state->end_col_offset, Py_None) == in init_types() 1171 if (PyObject_SetAttr(state->FunctionDef_type, state->returns, Py_None) == in init_types() 1174 if (PyObject_SetAttr(state->FunctionDef_type, state->type_comment, Py_None) in init_types() 1182 if (PyObject_SetAttr(state->AsyncFunctionDef_type, state->returns, Py_None) in init_types() 1185 if (PyObject_SetAttr(state->AsyncFunctionDef_type, state->type_comment, in init_types() 1196 if (PyObject_SetAttr(stat in init_types() [all...] |
H A D | errors.c | 1625 if (PyObject_SetAttr(v, &_Py_ID(lineno), tmp)) { in PyErr_SyntaxLocationObjectEx() 1637 if (PyObject_SetAttr(v, &_Py_ID(offset), tmp ? tmp : Py_None)) { in PyErr_SyntaxLocationObjectEx() 1649 if (PyObject_SetAttr(v, &_Py_ID(end_lineno), tmp ? tmp : Py_None)) { in PyErr_SyntaxLocationObjectEx() 1661 if (PyObject_SetAttr(v, &_Py_ID(end_offset), tmp ? tmp : Py_None)) { in PyErr_SyntaxLocationObjectEx() 1668 if (PyObject_SetAttr(v, &_Py_ID(filename), filename)) { in PyErr_SyntaxLocationObjectEx() 1674 if (PyObject_SetAttr(v, &_Py_ID(text), tmp)) { in PyErr_SyntaxLocationObjectEx() 1693 if (PyObject_SetAttr(v, &_Py_ID(msg), tmp)) { in PyErr_SyntaxLocationObjectEx() 1710 if (PyObject_SetAttr(v, &_Py_ID(print_file_and_line), Py_None)) { in PyErr_SyntaxLocationObjectEx()
|
H A D | sysmodule.c | 698 if (PyObject_SetAttr(builtins, &_Py_ID(_), Py_None) != 0) in sys_displayhook() 723 if (PyObject_SetAttr(builtins, &_Py_ID(_), o) != 0) in sys_displayhook()
|
H A D | bltinmodule.c | 1522 if (PyObject_SetAttr(obj, name, value) != 0) in builtin_setattr_impl() 1544 if (PyObject_SetAttr(obj, name, (PyObject *)NULL) != 0) in builtin_delattr_impl()
|
H A D | pylifecycle.c | 2268 if (text == NULL || PyObject_SetAttr(raw, &_Py_ID(name), text) < 0) in create_stdio() 2327 if (!text || PyObject_SetAttr(stream, &_Py_ID(mode), text) < 0) in create_stdio()
|
H A D | ceval.c | 2888 err = PyObject_SetAttr(owner, name, v); 2902 err = PyObject_SetAttr(owner, name, (PyObject *)NULL); 7769 (void)PyObject_SetAttr(value, &_Py_ID(name), obj);
|
/third_party/python/Modules/_io/ |
H A D | iobase.c | 236 rc = PyObject_SetAttr(self, &_Py_ID(__IOBase_closed), Py_True); in _io__IOBase_close_impl() 276 if (PyObject_SetAttr(self, &_Py_ID(_finalizing), Py_True)) in iobase_finalize()
|
H A D | _iomodule.c | 433 if (PyObject_SetAttr(wrapper, &_Py_ID(mode), modeobj) < 0) in _io_open_impl()
|
H A D | fileio.c | 476 if (PyObject_SetAttr((PyObject *)self, &_Py_ID(name), nameobj) < 0)
|
H A D | winconsoleio.c | 394 if (PyObject_SetAttr((PyObject *)self, &_Py_ID(name), nameobj) < 0) in _io__WindowsConsoleIO___init___impl()
|
/third_party/python/Modules/_ctypes/ |
H A D | stgdict.c | 278 if (-1 == PyObject_SetAttr(type, fname, (PyObject *)new_descr)) { in MakeFields() 633 if (-1 == PyObject_SetAttr(type, name, prop)) { in PyCStructUnionType_update_stgdict()
|
H A D | _ctypes.c | 4418 res = PyObject_SetAttr(self, name, val); in _init_pos_args() 4454 if (-1 == PyObject_SetAttr(self, key, value)) in Struct_init()
|
/third_party/python/Modules/ |
H A D | _abc.c | 405 if (PyObject_SetAttr(self, &_Py_ID(__abstractmethods__), abstracts) < 0) { in compute_abstract_methods() 444 if (PyObject_SetAttr(self, &_Py_ID(_abc_impl), data) < 0) { in _abc__abc_init()
|
H A D | _ssl.c | 542 if (PyObject_SetAttr(err_value, state->str_reason, reason_obj)) in fill_and_set_sslerror() 547 if (PyObject_SetAttr(err_value, state->str_library, lib_obj)) in fill_and_set_sslerror() 552 if (PyObject_SetAttr(err_value, state->str_verify_code, in fill_and_set_sslerror() 555 if (PyObject_SetAttr(err_value, state->str_verify_message, verify_obj)) in fill_and_set_sslerror()
|
/third_party/python/Objects/ |
H A D | object.c | 829 res = PyObject_SetAttr(v, s, w); in PyObject_SetAttrString() 869 result = PyObject_SetAttr(v, oname, w); in _PyObject_SetAttrId() 894 if (PyObject_SetAttr(value, &_Py_ID(name), name) || in set_attribute_error_context() 895 PyObject_SetAttr(value, &_Py_ID(obj), v)) { in set_attribute_error_context() 1013 PyObject_SetAttr(PyObject *v, PyObject *name, PyObject *value) in PyObject_SetAttr() function
|
H A D | moduleobject.c | 468 if (v == NULL || PyObject_SetAttr(m, &_Py_ID(__doc__), v) != 0) { in PyModule_SetDocString()
|
H A D | funcobject.c | 813 int res = PyObject_SetAttr(wrapper, name, value); in functools_copy_attr()
|
H A D | genericaliasobject.c | 566 if (PyObject_SetAttr(obj, &_Py_ID(__orig_class__), self) < 0) { in set_orig_class()
|
H A D | weakrefobject.c | 493 int res = PyObject_SetAttr(obj, name, value); in proxy_setattr()
|
H A D | exceptions.c | 172 int res = PyObject_SetAttr(self, d_key, d_value); in BaseException_setstate() 218 if (PyObject_SetAttr(self, &_Py_ID(__notes__), new_notes) < 0) { in BaseException_add_note() 958 int res = PyObject_SetAttr(eg, &_Py_ID(__notes__), notes_copy); in exceptiongroup_subset()
|
H A D | descrobject.c | 1810 int err = PyObject_SetAttr( in property_init_impl()
|
/third_party/python/Include/ |
H A D | abstract.h | 76 int PyObject_SetAttr(PyObject *o, PyObject *attr_name, PyObject *v); 101 #define PyObject_DelAttr(O,A) PyObject_SetAttr((O),(A), NULL)
|
H A D | object.h | 293 PyAPI_FUNC(int) PyObject_SetAttr(PyObject *, PyObject *, PyObject *);
|
/third_party/python/PC/ |
H A D | python3dll.c | 482 EXPORT_FUNC(PyObject_SetAttr)
|
/third_party/skia/third_party/externals/libwebp/swig/ |
H A D | libwebp_python_wrap.c | 2525 PyObject_SetAttr(inst, key, swig_this); in SWIG_Python_NewShadowInstance() 2532 PyObject_SetAttr(inst, SWIG_This(), swig_this); in SWIG_Python_NewShadowInstance()
|