Home
last modified time | relevance | path

Searched refs:PyObject_SetAttrString (Results 1 – 25 of 40) sorted by relevance

12

/external/python/cpython2/Python/
DPython-ast.c540 result = PyObject_SetAttrString((PyObject*)type, "_attributes", l) >= 0; in add_attributes()
2149 if (PyObject_SetAttrString(result, "body", value) == -1) in ast2obj_mod()
2158 if (PyObject_SetAttrString(result, "body", value) == -1) in ast2obj_mod()
2167 if (PyObject_SetAttrString(result, "body", value) == -1) in ast2obj_mod()
2176 if (PyObject_SetAttrString(result, "body", value) == -1) in ast2obj_mod()
2204 if (PyObject_SetAttrString(result, "name", value) == -1) in ast2obj_stmt()
2209 if (PyObject_SetAttrString(result, "args", value) == -1) in ast2obj_stmt()
2214 if (PyObject_SetAttrString(result, "body", value) == -1) in ast2obj_stmt()
2220 if (PyObject_SetAttrString(result, "decorator_list", value) == in ast2obj_stmt()
2230 if (PyObject_SetAttrString(result, "name", value) == -1) in ast2obj_stmt()
[all …]
Derrors.c740 if (PyObject_SetAttrString(v, "lineno", tmp)) in PyErr_SyntaxLocation()
749 if (PyObject_SetAttrString(v, "filename", tmp)) in PyErr_SyntaxLocation()
756 if (PyObject_SetAttrString(v, "text", tmp)) in PyErr_SyntaxLocation()
761 if (PyObject_SetAttrString(v, "offset", Py_None)) { in PyErr_SyntaxLocation()
768 if (PyObject_SetAttrString(v, "msg", tmp)) in PyErr_SyntaxLocation()
776 if (PyObject_SetAttrString(v, "print_file_and_line", in PyErr_SyntaxLocation()
Dsysmodule.c106 if (PyObject_SetAttrString(builtins, "_", Py_None) != 0) in sys_displayhook()
120 if (PyObject_SetAttrString(builtins, "_", o) != 0) in sys_displayhook()
/external/python/cpython3/Modules/_ctypes/
D_ctypes.c481 if (-1 == PyObject_SetAttrString((PyObject *)result, "_fields_", fields)) { in StructUnionType_new()
2097 PyObject_SetAttrString((PyObject *)result, "__ctype_le__", swapped); in PyCSimpleType_new()
2098 PyObject_SetAttrString((PyObject *)result, "__ctype_be__", (PyObject *)result); in PyCSimpleType_new()
2099 PyObject_SetAttrString(swapped, "__ctype_be__", (PyObject *)result); in PyCSimpleType_new()
2100 PyObject_SetAttrString(swapped, "__ctype_le__", swapped); in PyCSimpleType_new()
2104 PyObject_SetAttrString((PyObject *)result, "__ctype_be__", swapped); in PyCSimpleType_new()
2105 PyObject_SetAttrString((PyObject *)result, "__ctype_le__", (PyObject *)result); in PyCSimpleType_new()
2106 PyObject_SetAttrString(swapped, "__ctype_le__", (PyObject *)result); in PyCSimpleType_new()
2107 PyObject_SetAttrString(swapped, "__ctype_be__", swapped); in PyCSimpleType_new()
5244 status = PyObject_SetAttrString(self, "args", a); in comerror_init()
[all …]
/external/python/cpython2/Modules/_ctypes/
D_ctypes.c524 if (-1 == PyObject_SetAttrString((PyObject *)result, "_fields_", fields)) { in StructUnionType_new()
2189 PyObject_SetAttrString((PyObject *)result, "__ctype_le__", swapped); in PyCSimpleType_new()
2190 PyObject_SetAttrString((PyObject *)result, "__ctype_be__", (PyObject *)result); in PyCSimpleType_new()
2191 PyObject_SetAttrString(swapped, "__ctype_be__", (PyObject *)result); in PyCSimpleType_new()
2192 PyObject_SetAttrString(swapped, "__ctype_le__", swapped); in PyCSimpleType_new()
2196 PyObject_SetAttrString((PyObject *)result, "__ctype_be__", swapped); in PyCSimpleType_new()
2197 PyObject_SetAttrString((PyObject *)result, "__ctype_le__", (PyObject *)result); in PyCSimpleType_new()
2198 PyObject_SetAttrString(swapped, "__ctype_le__", (PyObject *)result); in PyCSimpleType_new()
2199 PyObject_SetAttrString(swapped, "__ctype_be__", swapped); in PyCSimpleType_new()
5501 status = PyObject_SetAttrString(self, "args", a); in comerror_init()
[all …]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/include/
Dcext.h148 res__ = PyObject_SetAttrString(m, "__doc__", uni__); \
/external/python/cpython2/PC/os2vacpp/
Dpython.def324 PyObject_SetAttrString
/external/python/cpython2/Modules/_io/
D_iomodule.c522 if (PyObject_SetAttrString(wrapper, "mode", modeobj) < 0) in io_open()
Diobase.c189 rc = PyObject_SetAttrString(self, "__IOBase_closed", Py_True); in iobase_close()
Dfileio.c392 if (PyObject_SetAttrString((PyObject *)self, "name", nameobj) < 0) in fileio_init()
/external/python/cpython2/Doc/data/
Drefcounts.dat1035 PyObject_SetAttrString:int:::
1036 PyObject_SetAttrString:PyObject*:o:0:
1037 PyObject_SetAttrString:char*:attr_name::
1038 PyObject_SetAttrString:PyObject*:v:+1:
/external/python/cpython2/Include/
Dabstract.h218 #define PyObject_DelAttrString(O,A) PyObject_SetAttrString((O),(A),NULL)
Dobject.h472 PyAPI_FUNC(int) PyObject_SetAttrString(PyObject *, const char *, PyObject *);
/external/python/cpython3/Include/
Dabstract.h91 #define PyObject_DelAttrString(O,A) PyObject_SetAttrString((O),(A), NULL)
Dobject.h533 PyAPI_FUNC(int) PyObject_SetAttrString(PyObject *, const char *, PyObject *);
/external/python/cpython3/PC/bdist_wininst/
Dinstall.c685 DECLPROC(hPython, int, PyObject_SetAttrString, (PyObject *, char *, PyObject *)); in prepare_script_environment()
693 !PyObject_SetAttrString || !PyCFunction_New) in prepare_script_environment()
704 PyObject_SetAttrString(mod, meth[i].ml_name, in prepare_script_environment()
/external/python/cpython2/PC/bdist_wininst/
Dinstall.c655 DECLPROC(hPython, int, PyObject_SetAttrString, (PyObject *, char *, PyObject *)); in prepare_script_environment()
663 !PyObject_SetAttrString || !PyCFunction_New) in prepare_script_environment()
674 PyObject_SetAttrString(mod, meth[i].ml_name, in prepare_script_environment()
/external/python/cpython3/PC/
Dpython3.def491 PyObject_SetAttrString=python37.PyObject_SetAttrString
/external/python/cpython3/Objects/
Dmoduleobject.c163 if (PyObject_SetAttrString(module, fdef->ml_name, func) != 0) { in _add_methods_to_object()
/external/python/cpython2/RISCOS/Modules/
Dswimodule.c33 PyObject_SetAttrString(PyErr_Occurred(), "errnum", PyInt_FromLong(e->errnum)); in swi_oserror()
/external/protobuf/python/google/protobuf/pyext/
Dmessage.cc164 if (PyObject_SetAttrString( in AddDescriptors()
178 if (PyObject_SetAttrString(cls, enum_value_descriptor->name().c_str(), in AddDescriptors()
198 if (PyObject_SetAttrString( in AddDescriptors()
/external/python/cpython3/Doc/data/
Drefcounts.dat1754 PyObject_SetAttrString:int:::
1755 PyObject_SetAttrString:PyObject*:o:0:
1756 PyObject_SetAttrString:const char*:attr_name::
1757 PyObject_SetAttrString:PyObject*:v:+1:
/external/python/cpython2/PC/os2emx/
Dpython27.def468 "PyObject_SetAttrString"
/external/python/cpython2/Objects/
Ddescrobject.c1342 int err = PyObject_SetAttrString(self, "__doc__", get_doc); in property_init()
/external/python/cpython2/Modules/
D_cursesmodule.c2389 if (PyObject_SetAttrString(m, "LINES", o)) { in update_lines_cols()
2405 if (PyObject_SetAttrString(m, "COLS", o)) { in update_lines_cols()

12