Home
last modified time | relevance | path

Searched refs:PyObject_SetAttr (Results 1 - 25 of 26) sorted by relevance

12

/third_party/python/Python/
H A DPython-ast.c831 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 Derrors.c1625 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 Dsysmodule.c698 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 Dbltinmodule.c1522 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 Dpylifecycle.c2268 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 Dceval.c2888 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 Diobase.c236 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.c433 if (PyObject_SetAttr(wrapper, &_Py_ID(mode), modeobj) < 0) in _io_open_impl()
H A Dfileio.c476 if (PyObject_SetAttr((PyObject *)self, &_Py_ID(name), nameobj) < 0)
H A Dwinconsoleio.c394 if (PyObject_SetAttr((PyObject *)self, &_Py_ID(name), nameobj) < 0) in _io__WindowsConsoleIO___init___impl()
/third_party/python/Modules/_ctypes/
H A Dstgdict.c278 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.c4418 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.c405 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.c542 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 Dobject.c829 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 Dmoduleobject.c468 if (v == NULL || PyObject_SetAttr(m, &_Py_ID(__doc__), v) != 0) { in PyModule_SetDocString()
H A Dfuncobject.c813 int res = PyObject_SetAttr(wrapper, name, value); in functools_copy_attr()
H A Dgenericaliasobject.c566 if (PyObject_SetAttr(obj, &_Py_ID(__orig_class__), self) < 0) { in set_orig_class()
H A Dweakrefobject.c493 int res = PyObject_SetAttr(obj, name, value); in proxy_setattr()
H A Dexceptions.c172 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 Ddescrobject.c1810 int err = PyObject_SetAttr( in property_init_impl()
/third_party/python/Include/
H A Dabstract.h76 int PyObject_SetAttr(PyObject *o, PyObject *attr_name, PyObject *v);
101 #define PyObject_DelAttr(O,A) PyObject_SetAttr((O),(A), NULL)
H A Dobject.h293 PyAPI_FUNC(int) PyObject_SetAttr(PyObject *, PyObject *, PyObject *);
/third_party/python/PC/
H A Dpython3dll.c482 EXPORT_FUNC(PyObject_SetAttr)
/third_party/skia/third_party/externals/libwebp/swig/
H A Dlibwebp_python_wrap.c2525 PyObject_SetAttr(inst, key, swig_this); in SWIG_Python_NewShadowInstance()
2532 PyObject_SetAttr(inst, SWIG_This(), swig_this); in SWIG_Python_NewShadowInstance()

Completed in 82 milliseconds

12