Home
last modified time | relevance | path

Searched refs:PyObject_SetAttr (Results 1 – 25 of 61) sorted by relevance

123

/aosp_15_r20/external/python/cpython3/Python/
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(state->Return_type, state->value, Py_None) == -1) in init_types()
[all …]
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()
/aosp_15_r20/external/python/cpython3/Objects/
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
/aosp_15_r20/external/python/cpython2/Modules/_ctypes/
Dstgdict.c252 if (-1 == PyObject_SetAttr(type, fname, (PyObject *)new_descr)) { in MakeFields()
567 if (-1 == PyObject_SetAttr(type, name, prop)) { in PyCStructUnionType_update_stgdict()
/aosp_15_r20/external/python/cpython3/Modules/_io/
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()
D_iomodule.c432 if (PyObject_SetAttr(wrapper, &_Py_ID(mode), modeobj) < 0) in _io_open_impl()
Dfileio.c476 if (PyObject_SetAttr((PyObject *)self, &_Py_ID(name), nameobj) < 0)
/aosp_15_r20/external/python/cpython3/Modules/_ctypes/
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()
/aosp_15_r20/external/python/cpython3/Modules/
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()
/aosp_15_r20/external/python/cpython2/Doc/data/
Drefcounts.dat1030 PyObject_SetAttr:int:::
1031 PyObject_SetAttr:PyObject*:o:0:
1032 PyObject_SetAttr:PyObject*:attr_name:0:
1033 PyObject_SetAttr:PyObject*:v:+1:
/aosp_15_r20/external/python/cpython2/PC/os2vacpp/
Dpython.def323 PyObject_SetAttr
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/include/python3.11/
Dabstract.h101 #define PyObject_DelAttr(O,A) PyObject_SetAttr((O),(A), NULL)
Dobject.h293 PyAPI_FUNC(int) PyObject_SetAttr(PyObject *, PyObject *, PyObject *);
/aosp_15_r20/external/python/cpython3/Include/
Dabstract.h101 #define PyObject_DelAttr(O,A) PyObject_SetAttr((O),(A), NULL)
Dobject.h293 PyAPI_FUNC(int) PyObject_SetAttr(PyObject *, PyObject *, PyObject *);
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/include/python3.11/
Dabstract.h101 #define PyObject_DelAttr(O,A) PyObject_SetAttr((O),(A), NULL)
Dobject.h293 PyAPI_FUNC(int) PyObject_SetAttr(PyObject *, PyObject *, PyObject *);
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/include/python3.11/
Dabstract.h101 #define PyObject_DelAttr(O,A) PyObject_SetAttr((O),(A), NULL)
Dobject.h293 PyAPI_FUNC(int) PyObject_SetAttr(PyObject *, PyObject *, PyObject *);
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/include/python3.11/
Dabstract.h101 #define PyObject_DelAttr(O,A) PyObject_SetAttr((O),(A), NULL)
Dobject.h293 PyAPI_FUNC(int) PyObject_SetAttr(PyObject *, PyObject *, PyObject *);
/aosp_15_r20/external/python/cpython2/Include/
Dabstract.h229 #define PyObject_DelAttr(O,A) PyObject_SetAttr((O),(A),NULL)
Dobject.h475 PyAPI_FUNC(int) PyObject_SetAttr(PyObject *, PyObject *, PyObject *);
/aosp_15_r20/external/python/cpython3/Doc/data/
Drefcounts.dat1784 PyObject_SetAttr:int:::
1785 PyObject_SetAttr:PyObject*:o:0:
1786 PyObject_SetAttr:PyObject*:attr_name:0:
1787 PyObject_SetAttr:PyObject*:v:+1:
/aosp_15_r20/external/python/cpython2/Objects/
Dobject.c1171 res = PyObject_SetAttr(v, s, w); in PyObject_SetAttrString()
1223 PyObject_SetAttr(PyObject *v, PyObject *name, PyObject *value) in PyObject_SetAttr() function

123