Home
last modified time | relevance | path

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

12345678910>>...25

/third_party/python/Include/internal/
Dpycore_ast_state.h15 PyObject *AST_type;
16 PyObject *Add_singleton;
17 PyObject *Add_type;
18 PyObject *And_singleton;
19 PyObject *And_type;
20 PyObject *AnnAssign_type;
21 PyObject *Assert_type;
22 PyObject *Assign_type;
23 PyObject *AsyncFor_type;
24 PyObject *AsyncFunctionDef_type;
[all …]
/third_party/python/Include/
Dabstract.h146 PyAPI_FUNC(PyObject *) PyObject_CallNoArgs(PyObject *func);
158 PyAPI_FUNC(PyObject *) PyObject_Call(PyObject *callable,
159 PyObject *args, PyObject *kwargs);
169 PyAPI_FUNC(PyObject *) PyObject_CallObject(PyObject *callable,
170 PyObject *args);
182 PyAPI_FUNC(PyObject *) PyObject_CallFunction(PyObject *callable,
194 PyAPI_FUNC(PyObject *) PyObject_CallMethod(PyObject *obj,
198 PyAPI_FUNC(PyObject *) _PyObject_CallFunction_SizeT(PyObject *callable,
202 PyAPI_FUNC(PyObject *) _PyObject_CallMethod_SizeT(PyObject *obj,
215 PyAPI_FUNC(PyObject *) PyObject_CallFunctionObjArgs(PyObject *callable,
[all …]
Dpyerrors.h11 PyAPI_FUNC(void) PyErr_SetNone(PyObject *);
12 PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *);
14 PyObject *exception,
17 PyAPI_FUNC(PyObject *) PyErr_Occurred(void);
19 PyAPI_FUNC(void) PyErr_Fetch(PyObject **, PyObject **, PyObject **);
20 PyAPI_FUNC(void) PyErr_Restore(PyObject *, PyObject *, PyObject *);
22 PyAPI_FUNC(void) PyErr_GetExcInfo(PyObject **, PyObject **, PyObject **);
23 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.h82 #define PyObject_HEAD PyObject ob_base;
109 } PyObject; typedef
112 #define _PyObject_CAST(op) ((PyObject*)(op))
113 #define _PyObject_CAST_CONST(op) ((const PyObject*)(op))
116 PyObject ob_base;
126 PyAPI_FUNC(int) Py_Is(PyObject *x, PyObject *y);
130 static inline Py_ssize_t _Py_REFCNT(const PyObject *ob) { in _Py_REFCNT()
143 static inline int _Py_IS_TYPE(const PyObject *ob, const PyTypeObject *type) { in _Py_IS_TYPE()
151 static inline void _Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { in _Py_SET_REFCNT()
157 static inline void _Py_SET_TYPE(PyObject *ob, PyTypeObject *type) { in _Py_SET_TYPE()
[all …]
Dfuncobject.h12 PyObject *PREFIX ## globals; \
13 PyObject *PREFIX ## builtins; \
14 PyObject *PREFIX ## name; \
15 PyObject *PREFIX ## qualname; \
16 PyObject *PREFIX ## code; /* A code object, the __code__ attribute */ \
17 PyObject *PREFIX ## defaults; /* NULL or a tuple */ \
18 PyObject *PREFIX ## kwdefaults; /* NULL or a dict */ \
19 PyObject *PREFIX ## closure; /* NULL or a tuple of cell objects */
39 PyObject *func_doc; /* The __doc__ attribute, can be anything */
40 PyObject *func_dict; /* The __dict__ attribute, a dict or NULL */
[all …]
/third_party/python/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 …]
Dreadline.c.h25 static PyObject *
26 readline_read_init_file_impl(PyObject *module, PyObject *filename_obj);
28 static PyObject *
29 readline_read_init_file(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in readline_read_init_file()
31 PyObject *return_value = NULL; in readline_read_init_file()
32 PyObject *filename_obj = Py_None; in readline_read_init_file()
59 static PyObject *
60 readline_read_history_file_impl(PyObject *module, PyObject *filename_obj);
62 static PyObject *
63 readline_read_history_file(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in readline_read_history_file()
[all …]
D_cursesmodule.c.h26 static PyObject *
28 int y, int x, PyObject *ch, int group_right_1,
31 static PyObject *
32 _curses_window_addch(PyCursesWindowObject *self, PyObject *args) in _curses_window_addch()
34 PyObject *return_value = NULL; in _curses_window_addch()
38 PyObject *ch; in _curses_window_addch()
98 static PyObject *
100 int y, int x, PyObject *str, int group_right_1,
103 static PyObject *
104 _curses_window_addstr(PyCursesWindowObject *self, PyObject *args) in _curses_window_addstr()
[all …]
Ditertoolsmodule.c.h13 static PyObject *
14 pairwise_new_impl(PyTypeObject *type, PyObject *iterable);
16 static PyObject *
17 pairwise_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) in pairwise_new()
19 PyObject *return_value = NULL; in pairwise_new()
20 PyObject *iterable; in pairwise_new()
49 static PyObject *
50 itertools_groupby_impl(PyTypeObject *type, PyObject *it, PyObject *keyfunc);
52 static PyObject *
53 itertools_groupby(PyTypeObject *type, PyObject *args, PyObject *kwargs) in itertools_groupby()
[all …]
D_asynciomodule.c.h23 _asyncio_Future___init___impl(FutureObj *self, PyObject *loop);
26 _asyncio_Future___init__(PyObject *self, PyObject *args, PyObject *kwargs) in _asyncio_Future___init__()
31 PyObject *argsbuf[1]; in _asyncio_Future___init__()
32 PyObject * const *fastargs; in _asyncio_Future___init__()
35 PyObject *loop = Py_None; in _asyncio_Future___init__()
65 static PyObject *
68 static PyObject *
69 _asyncio_Future_result(FutureObj *self, PyObject *Py_UNUSED(ignored)) in _asyncio_Future_result()
88 static PyObject *
91 static PyObject *
[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 *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_stat()
39 PyObject *return_value = NULL; in os_stat()
42 PyObject *argsbuf[3]; in os_stat()
92 static PyObject *
93 os_lstat_impl(PyObject *module, path_t *path, int dir_fd);
95 static PyObject *
96 os_lstat(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_lstat()
[all …]
D_heapqmodule.c.h14 static PyObject *
15 _heapq_heappush_impl(PyObject *module, PyObject *heap, PyObject *item);
17 static PyObject *
18 _heapq_heappush(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in _heapq_heappush()
20 PyObject *return_value = NULL; in _heapq_heappush()
21 PyObject *heap; in _heapq_heappush()
22 PyObject *item; in _heapq_heappush()
48 static PyObject *
49 _heapq_heappop_impl(PyObject *module, PyObject *heap);
51 static PyObject *
[all …]
Dsignalmodule.c.h16 static PyObject *
17 signal_default_int_handler_impl(PyObject *module, int signalnum,
18 PyObject *frame);
20 static PyObject *
21 signal_default_int_handler(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in signal_default_int_handler()
23 PyObject *return_value = NULL; in signal_default_int_handler()
25 PyObject *frame; in signal_default_int_handler()
53 signal_alarm_impl(PyObject *module, int seconds);
55 static PyObject *
56 signal_alarm(PyObject *module, PyObject *arg) in signal_alarm()
[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()
41 static PyObject *
44 static PyObject *
45 _elementtree_Element_clear(ElementObject *self, PyObject *Py_UNUSED(ignored)) in _elementtree_Element_clear()
58 static PyObject *
[all …]
Dmathmodule.c.h81 static PyObject *
82 math_frexp_impl(PyObject *module, double x);
84 static PyObject *
85 math_frexp(PyObject *module, PyObject *arg) in math_frexp()
87 PyObject *return_value = NULL; in math_frexp()
117 static PyObject *
118 math_ldexp_impl(PyObject *module, double x, PyObject *i);
120 static PyObject *
121 math_ldexp(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in math_ldexp()
123 PyObject *return_value = NULL; in math_ldexp()
[all …]
/third_party/python/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 …]
/third_party/python/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 …]
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 …]
/third_party/python/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 …]
/third_party/python/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 …]
/third_party/python/Modules/
D_operator.c6 PyObject *itemgetter_type;
7 PyObject *attrgetter_type;
8 PyObject *methodcaller_type;
12 get_operator_state(PyObject *module) in get_operator_state()
44 _operator_truth_impl(PyObject *module, PyObject *a) in _operator_truth_impl()
60 static PyObject *
61 _operator_add_impl(PyObject *module, PyObject *a, PyObject *b) in _operator_add_impl()
73 static PyObject *
74 _operator_sub_impl(PyObject *module, PyObject *a, PyObject *b) in _operator_sub_impl()
86 static PyObject *
[all …]
/third_party/python/Include/cpython/
Ddictobject.h27 PyObject **ma_values;
30 PyAPI_FUNC(PyObject *) _PyDict_GetItem_KnownHash(PyObject *mp, PyObject *key,
32 PyAPI_FUNC(PyObject *) _PyDict_GetItemIdWithError(PyObject *dp,
34 PyAPI_FUNC(PyObject *) _PyDict_GetItemStringWithError(PyObject *, const char *);
35 PyAPI_FUNC(PyObject *) PyDict_SetDefault(
36 PyObject *mp, PyObject *key, PyObject *defaultobj);
37 PyAPI_FUNC(int) _PyDict_SetItem_KnownHash(PyObject *mp, PyObject *key,
38 PyObject *item, Py_hash_t hash);
39 PyAPI_FUNC(int) _PyDict_DelItem_KnownHash(PyObject *mp, PyObject *key,
41 PyAPI_FUNC(int) _PyDict_DelItemIf(PyObject *mp, PyObject *key,
[all …]
Dpyerrors.h8 #define PyException_HEAD PyObject_HEAD PyObject *dict;\
9 PyObject *args; PyObject *traceback;\
10 PyObject *context; PyObject *cause;\
19 PyObject *msg;
20 PyObject *filename;
21 PyObject *lineno;
22 PyObject *offset;
23 PyObject *end_lineno;
24 PyObject *end_offset;
25 PyObject *text;
[all …]

12345678910>>...25