Home
last modified time | relevance | path

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

12345678910>>...37

/external/python/cpython3/Include/
Dpyerrors.h11 #define PyException_HEAD PyObject_HEAD PyObject *dict;\
12 PyObject *args; PyObject *traceback;\
13 PyObject *context; PyObject *cause;\
22 PyObject *msg;
23 PyObject *filename;
24 PyObject *lineno;
25 PyObject *offset;
26 PyObject *text;
27 PyObject *print_file_and_line;
32 PyObject *msg;
[all …]
Dabstract.h268 PyAPI_FUNC(PyObject *) PyObject_Call(PyObject *callable_object,
269 PyObject *args, PyObject *kwargs);
278 PyAPI_FUNC(PyObject*) _PyStack_AsTuple(
279 PyObject **stack,
289 PyAPI_FUNC(PyObject *) _PyStack_AsDict(
290 PyObject **values,
291 PyObject *kwnames);
302 PyAPI_FUNC(PyObject **) _PyStack_UnpackDict(
303 PyObject **args,
305 PyObject *kwargs,
[all …]
Dobject.h83 #define PyObject_HEAD PyObject ob_base;
110 } PyObject; typedef
113 PyObject ob_base;
117 #define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
118 #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
145 PyObject *object;
169 typedef PyObject * (*unaryfunc)(PyObject *);
170 typedef PyObject * (*binaryfunc)(PyObject *, PyObject *);
171 typedef PyObject * (*ternaryfunc)(PyObject *, PyObject *, PyObject *);
172 typedef int (*inquiry)(PyObject *);
[all …]
Ddictobject.h40 PyObject **ma_values;
69 PyAPI_FUNC(PyObject *) PyDict_New(void);
70 PyAPI_FUNC(PyObject *) PyDict_GetItem(PyObject *mp, PyObject *key);
72 PyAPI_FUNC(PyObject *) _PyDict_GetItem_KnownHash(PyObject *mp, PyObject *key,
75 PyAPI_FUNC(PyObject *) PyDict_GetItemWithError(PyObject *mp, PyObject *key);
77 PyAPI_FUNC(PyObject *) _PyDict_GetItemIdWithError(PyObject *dp,
79 PyAPI_FUNC(PyObject *) PyDict_SetDefault(
80 PyObject *mp, PyObject *key, PyObject *defaultobj);
82 PyAPI_FUNC(int) PyDict_SetItem(PyObject *mp, PyObject *key, PyObject *item);
84 PyAPI_FUNC(int) _PyDict_SetItem_KnownHash(PyObject *mp, PyObject *key,
[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/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/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 …]
Dglmodule.c62 static PyObject *
63 gl_qread(PyObject *self, PyObject *args) in gl_qread()
70 { PyObject *v = PyTuple_New( 2 ); in gl_qread()
91 static PyObject *
92 gl_varray(PyObject *self, PyObject *args) in gl_varray()
94 PyObject *v, *w=NULL; in gl_varray()
97 PyObject * (*getitem)(PyObject *, int); in gl_varray()
167 static PyObject *gen_nvarray(); /* Forward */
170 static PyObject *
171 gl_nvarray(PyObject *self, PyObject *args) in gl_nvarray()
[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
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/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/Python/clinic/
Dbltinmodule.c.h85 static PyObject *
86 builtin_format_impl(PyObject *module, PyObject *value, PyObject *format_spec);
88 static PyObject *
89 builtin_format(PyObject *module, PyObject *args) in builtin_format()
91 PyObject *return_value = NULL; in builtin_format()
92 PyObject *value; in builtin_format()
93 PyObject *format_spec = NULL; in builtin_format()
114 static PyObject *
115 builtin_chr_impl(PyObject *module, int i);
117 static PyObject *
[all …]
Dimport.c.h16 static PyObject *
17 _imp_lock_held_impl(PyObject *module);
19 static PyObject *
20 _imp_lock_held(PyObject *module, PyObject *Py_UNUSED(ignored)) in _imp_lock_held()
37 static PyObject *
38 _imp_acquire_lock_impl(PyObject *module);
40 static PyObject *
41 _imp_acquire_lock(PyObject *module, PyObject *Py_UNUSED(ignored)) in _imp_acquire_lock()
57 static PyObject *
58 _imp_release_lock_impl(PyObject *module);
[all …]
/external/python/cpython3/Modules/clinic/
D_codecsmodule.c.h27 static PyObject *
28 _codecs_lookup_impl(PyObject *module, const char *encoding);
30 static PyObject *
31 _codecs_lookup(PyObject *module, PyObject *arg) in _codecs_lookup()
33 PyObject *return_value = NULL; in _codecs_lookup()
60 static PyObject *
61 _codecs_encode_impl(PyObject *module, PyObject *obj, const char *encoding,
64 static PyObject *
65 _codecs_encode(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) in _codecs_encode()
67 PyObject *return_value = NULL; in _codecs_encode()
[all …]
Dposixmodule.c.h33 static PyObject *
34 os_stat_impl(PyObject *module, path_t *path, int dir_fd, int follow_symlinks);
36 static PyObject *
37 os_stat(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) in os_stat()
39 PyObject *return_value = NULL; in os_stat()
71 static PyObject *
72 os_lstat_impl(PyObject *module, path_t *path, int dir_fd);
74 static PyObject *
75 os_lstat(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) in os_lstat()
77 PyObject *return_value = NULL; in os_lstat()
[all …]
D_elementtree.c.h13 static PyObject *
14 _elementtree_Element_append_impl(ElementObject *self, PyObject *subelement);
16 static PyObject *
17 _elementtree_Element_append(ElementObject *self, PyObject *arg) in _elementtree_Element_append()
19 PyObject *return_value = NULL; in _elementtree_Element_append()
20 PyObject *subelement; in _elementtree_Element_append()
39 static PyObject *
42 static PyObject *
43 _elementtree_Element_clear(ElementObject *self, PyObject *Py_UNUSED(ignored)) in _elementtree_Element_clear()
56 static PyObject *
[all …]
D_ssl.c.h13 static PyObject *
16 static PyObject *
17 _ssl__SSLSocket_do_handshake(PySSLSocket *self, PyObject *Py_UNUSED(ignored)) in _ssl__SSLSocket_do_handshake()
30 static PyObject *
31 _ssl__test_decode_cert_impl(PyObject *module, PyObject *path);
33 static PyObject *
34 _ssl__test_decode_cert(PyObject *module, PyObject *arg) in _ssl__test_decode_cert()
36 PyObject *return_value = NULL; in _ssl__test_decode_cert()
37 PyObject *path; in _ssl__test_decode_cert()
65 static PyObject *
[all …]
D_sre.c.h14 _sre_getcodesize_impl(PyObject *module);
16 static PyObject *
17 _sre_getcodesize(PyObject *module, PyObject *Py_UNUSED(ignored)) in _sre_getcodesize()
19 PyObject *return_value = NULL; in _sre_getcodesize()
41 _sre_getlower_impl(PyObject *module, int character, int flags);
43 static PyObject *
44 _sre_getlower(PyObject *module, PyObject *args) in _sre_getlower()
46 PyObject *return_value = NULL; in _sre_getlower()
74 static PyObject *
75 _sre_SRE_Pattern_match_impl(PatternObject *self, PyObject *string,
[all …]
/external/swiftshader/third_party/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/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/PC/
Dconfig.c8 extern PyObject* PyInit_array(void);
10 extern PyObject* PyInit_audioop(void);
12 extern PyObject* PyInit_binascii(void);
13 extern PyObject* PyInit_cmath(void);
14 extern PyObject* PyInit_errno(void);
15 extern PyObject* PyInit_faulthandler(void);
16 extern PyObject* PyInit__tracemalloc(void);
17 extern PyObject* PyInit_gc(void);
18 extern PyObject* PyInit_math(void);
19 extern PyObject* PyInit__md5(void);
[all …]
/external/python/cpython2/Mac/Modules/qd/
D_Qdmodule.c22 extern PyObject *_GrafObj_New(GrafPtr);
23 extern int _GrafObj_Convert(PyObject *, GrafPtr *);
24 extern PyObject *_BMObj_New(BitMapPtr);
25 extern int _BMObj_Convert(PyObject *, BitMapPtr *);
26 extern PyObject *_QdRGB_New(RGBColorPtr);
27 extern int _QdRGB_Convert(PyObject *, RGBColorPtr);
37 static PyObject *BMObj_NewCopied(BitMapPtr);
42 PyObject *QdRGB_New(RGBColorPtr itself) in QdRGB_New()
48 int QdRGB_Convert(PyObject *v, RGBColorPtr p_itself) in QdRGB_Convert()
64 PyObject *QdFI_New(FontInfo *itself) in QdFI_New()
[all …]
/external/python/cpython3/PC/clinic/
Dwinreg.c.h16 static PyObject *
19 static PyObject *
20 winreg_HKEYType_Close(PyHKEYObject *self, PyObject *Py_UNUSED(ignored)) in winreg_HKEYType_Close()
42 static PyObject *
45 static PyObject *
46 winreg_HKEYType_Detach(PyHKEYObject *self, PyObject *Py_UNUSED(ignored)) in winreg_HKEYType_Detach()
62 static PyObject *
63 winreg_HKEYType___enter__(PyHKEYObject *self, PyObject *Py_UNUSED(ignored)) in winreg_HKEYType___enter__()
65 PyObject *return_value = NULL; in winreg_HKEYType___enter__()
69 return_value = (PyObject *)_return_value; in winreg_HKEYType___enter__()
[all …]

12345678910>>...37