Home
last modified time | relevance | path

Searched refs:PyObject (Results 1 – 25 of 1069) sorted by relevance

12345678910>>...43

/external/python/cpython2/Include/
Dpyerrors.h11 PyObject *dict;
12 PyObject *args;
13 PyObject *message;
18 PyObject *dict;
19 PyObject *args;
20 PyObject *message;
21 PyObject *msg;
22 PyObject *filename;
23 PyObject *lineno;
24 PyObject *offset;
[all …]
Dabstract.h231 PyAPI_FUNC(int) PyObject_Cmp(PyObject *o1, PyObject *o2, int *result);
304 PyAPI_FUNC(PyObject *) PyObject_Call(PyObject *callable_object,
305 PyObject *args, PyObject *kw);
314 PyAPI_FUNC(PyObject *) PyObject_CallObject(PyObject *callable_object,
315 PyObject *args);
326 PyAPI_FUNC(PyObject *) PyObject_CallFunction(PyObject *callable_object,
340 PyAPI_FUNC(PyObject *) PyObject_CallMethod(PyObject *o, char *m,
352 PyAPI_FUNC(PyObject *) _PyObject_CallFunction_SizeT(PyObject *callable,
354 PyAPI_FUNC(PyObject *) _PyObject_CallMethod_SizeT(PyObject *o,
358 PyAPI_FUNC(PyObject *) PyObject_CallFunctionObjArgs(PyObject *callable,
[all …]
Dpymactoolbox.h35 extern PyObject *PyMac_OSErrException; /* Exception for OSErr */
36 PyObject *PyMac_GetOSErrException(void); /* Initialize & return it */
37 PyObject *PyErr_Mac(PyObject *, int); /* Exception with a mac error */
38 PyObject *PyMac_Error(OSErr); /* Uses PyMac_GetOSErrException */
47 int PyMac_GetOSType(PyObject *, OSType *); /* argument parser for OSType */
48 PyObject *PyMac_BuildOSType(OSType); /* Convert OSType to PyObject */
50 PyObject *PyMac_BuildNumVersion(NumVersion);/* Convert NumVersion to PyObject */
52 int PyMac_GetStr255(PyObject *, Str255); /* argument parser for Str255 */
53 PyObject *PyMac_BuildStr255(Str255); /* Convert Str255 to PyObject */
54 PyObject *PyMac_BuildOptStr255(Str255); /* Convert Str255 to PyObject,
[all …]
Dobject.h108 } PyObject; typedef
114 #define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
115 #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
133 typedef PyObject * (*unaryfunc)(PyObject *);
134 typedef PyObject * (*binaryfunc)(PyObject *, PyObject *);
135 typedef PyObject * (*ternaryfunc)(PyObject *, PyObject *, PyObject *);
136 typedef int (*inquiry)(PyObject *);
137 typedef Py_ssize_t (*lenfunc)(PyObject *);
138 typedef int (*coercion)(PyObject **, PyObject **);
139 typedef PyObject *(*intargfunc)(PyObject *, int) Py_DEPRECATED(2.5);
[all …]
/external/python/cpython3/Include/
Dabstract.h152 PyAPI_FUNC(PyObject *) PyObject_Call(PyObject *callable,
153 PyObject *args, PyObject *kwargs);
163 PyAPI_FUNC(PyObject *) PyObject_CallObject(PyObject *callable,
164 PyObject *args);
176 PyAPI_FUNC(PyObject *) PyObject_CallFunction(PyObject *callable,
188 PyAPI_FUNC(PyObject *) PyObject_CallMethod(PyObject *obj,
192 PyAPI_FUNC(PyObject *) _PyObject_CallFunction_SizeT(PyObject *callable,
196 PyAPI_FUNC(PyObject *) _PyObject_CallMethod_SizeT(PyObject *obj,
209 PyAPI_FUNC(PyObject *) PyObject_CallFunctionObjArgs(PyObject *callable,
220 PyAPI_FUNC(PyObject *) PyObject_CallMethodObjArgs(
[all …]
Dpyerrors.h9 PyAPI_FUNC(void) PyErr_SetNone(PyObject *);
10 PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *);
12 PyObject *exception,
15 PyAPI_FUNC(PyObject *) PyErr_Occurred(void);
17 PyAPI_FUNC(void) PyErr_Fetch(PyObject **, PyObject **, PyObject **);
18 PyAPI_FUNC(void) PyErr_Restore(PyObject *, PyObject *, PyObject *);
20 PyAPI_FUNC(void) PyErr_GetExcInfo(PyObject **, PyObject **, PyObject **);
21 PyAPI_FUNC(void) PyErr_SetExcInfo(PyObject *, PyObject *, PyObject *);
34 PyAPI_FUNC(int) PyErr_GivenExceptionMatches(PyObject *, PyObject *);
35 PyAPI_FUNC(int) PyErr_ExceptionMatches(PyObject *);
[all …]
Dunicodeobject.h130 PyAPI_FUNC(PyObject*) PyUnicode_FromStringAndSize(
137 PyAPI_FUNC(PyObject*) PyUnicode_FromString(
142 PyAPI_FUNC(PyObject*) PyUnicode_Substring(
143 PyObject *str,
155 PyObject *unicode,
163 PyAPI_FUNC(Py_UCS4*) PyUnicode_AsUCS4Copy(PyObject *unicode);
170 PyObject *unicode
178 PyObject *unicode /* Unicode object */
185 PyObject *unicode,
195 PyObject *unicode,
[all …]
Dobject.h81 #define PyObject_HEAD PyObject ob_base;
108 } PyObject; typedef
111 #define _PyObject_CAST(op) ((PyObject*)(op))
114 PyObject ob_base;
140 typedef PyObject * (*unaryfunc)(PyObject *);
141 typedef PyObject * (*binaryfunc)(PyObject *, PyObject *);
142 typedef PyObject * (*ternaryfunc)(PyObject *, PyObject *, PyObject *);
143 typedef int (*inquiry)(PyObject *);
144 typedef Py_ssize_t (*lenfunc)(PyObject *);
145 typedef PyObject *(*ssizeargfunc)(PyObject *, Py_ssize_t);
[all …]
Dfuncobject.h23 PyObject *func_code; /* A code object, the __code__ attribute */
24 PyObject *func_globals; /* A dictionary (other mappings won't do) */
25 PyObject *func_defaults; /* NULL or a tuple */
26 PyObject *func_kwdefaults; /* NULL or a dict */
27 PyObject *func_closure; /* NULL or a tuple of cell objects */
28 PyObject *func_doc; /* The __doc__ attribute, can be anything */
29 PyObject *func_name; /* The __name__ attribute, a string object */
30 PyObject *func_dict; /* The __dict__ attribute, a dict or NULL */
31 PyObject *func_weakreflist; /* List of weak references */
32 PyObject *func_module; /* The __module__ attribute, can be anything */
[all …]
/external/python/cpython3/Modules/clinic/
D_operator.c.h15 _operator_truth_impl(PyObject *module, PyObject *a);
17 static PyObject *
18 _operator_truth(PyObject *module, PyObject *a) in _operator_truth()
20 PyObject *return_value = NULL; in _operator_truth()
42 static PyObject *
43 _operator_add_impl(PyObject *module, PyObject *a, PyObject *b);
45 static PyObject *
46 _operator_add(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in _operator_add()
48 PyObject *return_value = NULL; in _operator_add()
49 PyObject *a; in _operator_add()
[all …]
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tfe.h51 PyObject* attrs, TFE_OutputTensorHandles* outputs,
62 TFE_InputTensorHandles* inputs, PyObject* attrs,
71 PyObject* TFE_Py_RegisterExceptionClass(PyObject* e);
75 PyObject* TFE_Py_RegisterVSpace(PyObject* e);
83 PyObject* TFE_Py_RegisterFallbackExceptionClass(PyObject* e);
93 PyObject* TFE_Py_RegisterGradientFunction(PyObject* e);
101 PyObject* TFE_Py_RegisterJVPFunction(PyObject* e);
106 int MaybeRaiseExceptionFromTFStatus(TF_Status* status, PyObject* exception);
112 PyObject* exception);
115 const char* TFE_GetPythonString(PyObject* o);
[all …]
/external/python/cpython2/Modules/
Dpuremodule.c62 static PyObject*
63 call_voidarg_function(VoidArgFunc func, PyObject *self, PyObject *args) in call_voidarg_function()
74 static PyObject*
75 call_stringarg_function(StringArgFunc func, PyObject *self, PyObject *args) in call_stringarg_function()
87 static PyObject*
88 call_stringorint_function(StringArgFunc func, PyObject *self, PyObject *args) in call_stringorint_function()
115 static PyObject*
116 call_printfish_function(PrintfishFunc func, PyObject *self, PyObject *args) in call_printfish_function()
132 static PyObject*
133 call_intasaddr_function(StringArgFunc func, PyObject *self, PyObject *args) in call_intasaddr_function()
[all …]
/external/python/cpython2/Doc/data/
Drefcounts.dat16 # Refcount behavior is given for all PyObject* types: 0 (no change), +1
18 # parameter or function value is not a PyObject* and is therefore not
20 # (without quotes) is used for functions which return a PyObject* type but
34 PyBool_FromLong:PyObject*::+1:
37 PyBuffer_FromObject:PyObject*::+1:
38 PyBuffer_FromObject:PyObject*:base:+1:
42 PyBuffer_FromReadWriteObject:PyObject*::+1:
43 PyBuffer_FromReadWriteObject:PyObject*:base:+1:
47 PyBuffer_FromMemory:PyObject*::+1:
51 PyBuffer_FromReadWriteMemory:PyObject*::+1:
[all …]
/external/python/cpython3/Doc/data/
Drefcounts.dat16 # Refcount behavior is given for all PyObject* types: 0 (no change), +1
18 # parameter or function value is not a PyObject* and is therefore not
20 # (without quotes) is used for functions which return a PyObject* type but
35 PyAnySet_Check:PyObject*:p:0:
38 PyAnySet_CheckExact:PyObject*:p:0:
41 PyBool_Check:PyObject*:o:0:
43 PyBool_FromLong:PyObject*::+1:
55 PyBuffer_FillInfo:PyObject*:exporter:0:
75 PyByteArray_AS_STRING:PyObject*:bytearray:0:
78 PyByteArray_AsString:PyObject*:bytearray:0:
[all …]
/external/python/cpython3/android/darwin_x86_64/
Dconfig.c26 extern PyObject* PyInit__posixshmem(void);
27 extern PyObject* PyInit__scproxy(void);
28 extern PyObject* PyInit_array(void);
29 extern PyObject* PyInit_cmath(void);
30 extern PyObject* PyInit_math(void);
31 extern PyObject* PyInit__contextvars(void);
32 extern PyObject* PyInit_time(void);
33 extern PyObject* PyInit__datetime(void);
34 extern PyObject* PyInit__random(void);
35 extern PyObject* PyInit__bisect(void);
[all …]
/external/python/cpython3/android/linux_x86_64/
Dconfig.c26 extern PyObject* PyInit__posixshmem(void);
27 extern PyObject* PyInit_array(void);
28 extern PyObject* PyInit_cmath(void);
29 extern PyObject* PyInit_math(void);
30 extern PyObject* PyInit__contextvars(void);
31 extern PyObject* PyInit_time(void);
32 extern PyObject* PyInit__datetime(void);
33 extern PyObject* PyInit__random(void);
34 extern PyObject* PyInit__bisect(void);
35 extern PyObject* PyInit__heapq(void);
[all …]
/external/python/cpython3/Python/clinic/
Dsysmodule.c.h14 static PyObject *
15 sys_addaudithook_impl(PyObject *module, PyObject *hook);
17 static PyObject *
18 sys_addaudithook(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in sys_addaudithook()
20 PyObject *return_value = NULL; in sys_addaudithook()
23 PyObject *argsbuf[1]; in sys_addaudithook()
24 PyObject *hook; in sys_addaudithook()
55 static PyObject *
56 sys_excepthook_impl(PyObject *module, PyObject *exctype, PyObject *value,
57 PyObject *traceback);
[all …]
Dbltinmodule.c.h87 static PyObject *
88 builtin_format_impl(PyObject *module, PyObject *value, PyObject *format_spec);
90 static PyObject *
91 builtin_format(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in builtin_format()
93 PyObject *return_value = NULL; in builtin_format()
94 PyObject *value; in builtin_format()
95 PyObject *format_spec = NULL; in builtin_format()
128 static PyObject *
129 builtin_chr_impl(PyObject *module, int i);
131 static PyObject *
[all …]
/external/python/cpython3/android/bionic/
Dconfig.c26 extern PyObject* PyInit_array(void);
27 extern PyObject* PyInit_cmath(void);
28 extern PyObject* PyInit_math(void);
29 extern PyObject* PyInit__contextvars(void);
30 extern PyObject* PyInit_time(void);
31 extern PyObject* PyInit__datetime(void);
32 extern PyObject* PyInit__random(void);
33 extern PyObject* PyInit__bisect(void);
34 extern PyObject* PyInit__heapq(void);
35 extern PyObject* PyInit__pickle(void);
[all …]
/external/python/cpython3/PC/
Dconfig.c8 extern PyObject* PyInit__abc(void);
9 extern PyObject* PyInit_array(void);
10 extern PyObject* PyInit_audioop(void);
11 extern PyObject* PyInit_binascii(void);
12 extern PyObject* PyInit_cmath(void);
13 extern PyObject* PyInit_errno(void);
14 extern PyObject* PyInit_faulthandler(void);
15 extern PyObject* PyInit__tracemalloc(void);
16 extern PyObject* PyInit_gc(void);
17 extern PyObject* PyInit_math(void);
[all …]
/external/python/cpython3/Include/cpython/
Ddictobject.h31 PyObject **ma_values;
34 PyAPI_FUNC(PyObject *) _PyDict_GetItem_KnownHash(PyObject *mp, PyObject *key,
36 PyAPI_FUNC(PyObject *) _PyDict_GetItemIdWithError(PyObject *dp,
38 PyAPI_FUNC(PyObject *) _PyDict_GetItemStringWithError(PyObject *, const char *);
39 PyAPI_FUNC(PyObject *) PyDict_SetDefault(
40 PyObject *mp, PyObject *key, PyObject *defaultobj);
41 PyAPI_FUNC(int) _PyDict_SetItem_KnownHash(PyObject *mp, PyObject *key,
42 PyObject *item, Py_hash_t hash);
43 PyAPI_FUNC(int) _PyDict_DelItem_KnownHash(PyObject *mp, PyObject *key,
45 PyAPI_FUNC(int) _PyDict_DelItemIf(PyObject *mp, PyObject *key,
[all …]
/external/python/cpython3/Objects/clinic/
Dunicodeobject.c.h17 static PyObject *
18 unicode_title_impl(PyObject *self);
20 static PyObject *
21 unicode_title(PyObject *self, PyObject *Py_UNUSED(ignored)) in unicode_title()
38 static PyObject *
39 unicode_capitalize_impl(PyObject *self);
41 static PyObject *
42 unicode_capitalize(PyObject *self, PyObject *Py_UNUSED(ignored)) in unicode_capitalize()
56 static PyObject *
57 unicode_casefold_impl(PyObject *self);
[all …]
/external/llvm/test/CodeGen/X86/
D2007-08-09-IllegalX86-64Asm.ll5 …ype { i64 (%struct.PyObject*, i64, i8**)*, i64 (%struct.PyObject*, i64, i8**)*, i64 (%struct.PyObj…
6 …uct.PyGetSetDef = type { i8*, %struct.PyObject* (%struct.PyObject*, i8*)*, i32 (%struct.PyObject*,…
7 …4 (%struct.PyObject*)*, %struct.PyObject* (%struct.PyObject*, %struct.PyObject*)*, i32 (%struct.Py…
9 …%struct.PyMethodDef = type { i8*, %struct.PyObject* (%struct.PyObject*, %struct.PyObject*)*, i32, …
10PyObject* (%struct.PyObject*, %struct.PyObject*)*, %struct.PyObject* (%struct.PyObject*, %struct.P…
11 %struct.PyObject = type { i64, %struct._typeobject* }
12PyObject*)*, %struct.PyObject* (%struct.PyObject*, %struct.PyObject*)*, %struct.PyObject* (%struct…
13 %struct.PyTupleObject = type { i64, %struct._typeobject*, i64, [1 x %struct.PyObject*] }
16PyObject*)*, i32 (%struct.PyObject*, %struct.FILE*, i32)*, %struct.PyObject* (%struct.PyObject*, i…
21 define %struct.PyObject* @ubyte_divmod(%struct.PyObject* %a, %struct.PyObject* %b) {
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
D2007-08-09-IllegalX86-64Asm.ll5 …ype { i64 (%struct.PyObject*, i64, i8**)*, i64 (%struct.PyObject*, i64, i8**)*, i64 (%struct.PyObj…
6 …uct.PyGetSetDef = type { i8*, %struct.PyObject* (%struct.PyObject*, i8*)*, i32 (%struct.PyObject*,…
7 …4 (%struct.PyObject*)*, %struct.PyObject* (%struct.PyObject*, %struct.PyObject*)*, i32 (%struct.Py…
9 …%struct.PyMethodDef = type { i8*, %struct.PyObject* (%struct.PyObject*, %struct.PyObject*)*, i32, …
10PyObject* (%struct.PyObject*, %struct.PyObject*)*, %struct.PyObject* (%struct.PyObject*, %struct.P…
11 %struct.PyObject = type { i64, %struct._typeobject* }
12PyObject*)*, %struct.PyObject* (%struct.PyObject*, %struct.PyObject*)*, %struct.PyObject* (%struct…
13 %struct.PyTupleObject = type { i64, %struct._typeobject*, i64, [1 x %struct.PyObject*] }
16PyObject*)*, i32 (%struct.PyObject*, %struct.FILE*, i32)*, %struct.PyObject* (%struct.PyObject*, i…
21 define %struct.PyObject* @ubyte_divmod(%struct.PyObject* %a, %struct.PyObject* %b) {
[all …]
/external/python/cpython3/Modules/
D_operator.c31 _operator_truth_impl(PyObject *module, PyObject *a) in _operator_truth_impl()
47 static PyObject *
48 _operator_add_impl(PyObject *module, PyObject *a, PyObject *b) in _operator_add_impl()
60 static PyObject *
61 _operator_sub_impl(PyObject *module, PyObject *a, PyObject *b) in _operator_sub_impl()
73 static PyObject *
74 _operator_mul_impl(PyObject *module, PyObject *a, PyObject *b) in _operator_mul_impl()
86 static PyObject *
87 _operator_matmul_impl(PyObject *module, PyObject *a, PyObject *b) in _operator_matmul_impl()
99 static PyObject *
[all …]

12345678910>>...43