Home | History | Annotate | Download | only in Include

Lines Matching defs:PyObject

40 Objects are always accessed through pointers of the type 'PyObject *'.
41 The type 'PyObject' is a structure that only contains the reference count
82 /* PyObject_HEAD defines the initial segment of every PyObject. */
83 #define PyObject_HEAD PyObject ob_base;
101 /* Nothing is actually declared to be a PyObject, but every pointer to
102 * a Python object can be cast to a PyObject*. This is inheritance built
110 } PyObject;
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 *);
173 typedef Py_ssize_t (*lenfunc)(PyObject *);
174 typedef PyObject *(*ssizeargfunc)(PyObject *, Py_ssize_t);
175 typedef PyObject *(*ssizessizeargfunc)(PyObject *, Py_ssize_t, Py_ssize_t);
176 typedef int(*ssizeobjargproc)(PyObject *, Py_ssize_t, PyObject *);
177 typedef int(*ssizessizeobjargproc)(PyObject *, Py_ssize_t, Py_ssize_t, PyObject *);
178 typedef int(*objobjargproc)(PyObject *, PyObject *, PyObject *);
184 PyObject *obj; /* owned reference */
197 typedef int (*getbufferproc)(PyObject *, Py_buffer *, int);
198 typedef void (*releasebufferproc)(PyObject *, Py_buffer *);
235 typedef int (*objobjproc)(PyObject *, PyObject *);
236 typedef int (*visitproc)(PyObject *, void *);
237 typedef int (*traverseproc)(PyObject *, visitproc, void *);
320 typedef void (*destructor)(PyObject *);
326 typedef int (*printfunc)(PyObject *, FILE *, int);
328 typedef PyObject *(*getattrfunc)(PyObject *, char *);
329 typedef PyObject *(*getattrofunc)(PyObject *, PyObject *);
330 typedef int (*setattrfunc)(PyObject *, char *, PyObject *);
331 typedef int (*setattrofunc)(PyObject *, PyObject *, PyObject *);
332 typedef PyObject *(*reprfunc)(PyObject *);
333 typedef Py_hash_t (*hashfunc)(PyObject *);
334 typedef PyObject *(*richcmpfunc) (PyObject *, PyObject *, int);
335 typedef PyObject *(*getiterfunc) (PyObject *);
336 typedef PyObject *(*iternextfunc) (PyObject *);
337 typedef PyObject *(*descrgetfunc) (PyObject *, PyObject *, PyObject *);
338 typedef int (*descrsetfunc) (PyObject *, PyObject *, PyObject *);
339 typedef int (*initproc)(PyObject *, PyObject *, PyObject *);
340 typedef PyObject *(*newfunc)(struct _typeobject *, PyObject *, PyObject *);
341 typedef PyObject *(*allocfunc)(struct _typeobject *, Py_ssize_t);
406 PyObject *tp_dict;
415 PyObject *tp_bases;
416 PyObject *tp_mro; /* method resolution order */
417 PyObject *tp_cache;
418 PyObject *tp_subclasses;
419 PyObject *tp_weaklist;
451 PyAPI_FUNC(PyObject*) PyType_FromSpec(PyType_Spec*);
453 PyAPI_FUNC(PyObject*) PyType_FromSpecWithBases(PyType_Spec*, PyObject*);
474 PyObject *ht_name, *ht_slots, *ht_qualname;
500 PyAPI_FUNC(PyObject *) PyType_GenericAlloc(PyTypeObject *, Py_ssize_t);
501 PyAPI_FUNC(PyObject *) PyType_GenericNew(PyTypeObject *,
502 PyObject *, PyObject *);
504 PyAPI_FUNC(PyObject *) _PyType_Lookup(PyTypeObject *, PyObject *);
505 PyAPI_FUNC(PyObject *) _PyType_LookupId(PyTypeObject *, _Py_Identifier *);
506 PyAPI_FUNC(PyObject *) _PyObject_LookupSpecial(PyObject *, _Py_Identifier *);
507 PyAPI_FUNC(PyTypeObject *) _PyType_CalculateMetaclass(PyTypeObject *, PyObject *);
513 PyAPI_FUNC(PyObject *) _PyType_GetDocFromInternalDoc(const char *, const char *);
514 PyAPI_FUNC(PyObject *) _PyType_GetTextSignatureFromInternalDoc(const char *, const char *);
520 PyAPI_FUNC(int) PyObject_Print(PyObject *, FILE *, int);
522 PyAPI_FUNC(void) _PyObject_Dump(PyObject *);
524 PyAPI_FUNC(PyObject *) PyObject_Repr(PyObject *);
525 PyAPI_FUNC(PyObject *) PyObject_Str(PyObject *);
526 PyAPI_FUNC(PyObject *) PyObject_ASCII(PyObject *);
527 PyAPI_FUNC(PyObject *) PyObject_Bytes(PyObject *);
528 PyAPI_FUNC(PyObject *) PyObject_RichCompare(PyObject *, PyObject *, int);
529 PyAPI_FUNC(int) PyObject_RichCompareBool(PyObject *, PyObject *, int);
530 PyAPI_FUNC(PyObject *) PyObject_GetAttrString(PyObject *, const char *);
531 PyAPI_FUNC(int) PyObject_SetAttrString(PyObject *, const char *, PyObject *);
532 PyAPI_FUNC(int) PyObject_HasAttrString(PyObject *, const char *);
533 PyAPI_FUNC(PyObject *) PyObject_GetAttr(PyObject *, PyObject *);
534 PyAPI_FUNC(int) PyObject_SetAttr(PyObject *, PyObject *, PyObject *);
535 PyAPI_FUNC(int) PyObject_HasAttr(PyObject *, PyObject *);
537 PyAPI_FUNC(int) _PyObject_IsAbstract(PyObject *);
538 PyAPI_FUNC(PyObject *) _PyObject_GetAttrId(PyObject *, struct _Py_Identifier *);
539 PyAPI_FUNC(int) _PyObject_SetAttrId(PyObject *, struct _Py_Identifier *, PyObject *);
540 PyAPI_FUNC(int) _PyObject_HasAttrId(PyObject *, struct _Py_Identifier *);
541 PyAPI_FUNC(PyObject **) _PyObject_GetDictPtr(PyObject *);
543 PyAPI_FUNC(PyObject *) PyObject_SelfIter(PyObject *);
545 PyAPI_FUNC(PyObject *) _PyObject_NextNotImplemented(PyObject *);
547 PyAPI_FUNC(PyObject *) PyObject_GenericGetAttr(PyObject *, PyObject *);
548 PyAPI_FUNC(int) PyObject_GenericSetAttr(PyObject *,
549 PyObject *, PyObject *);
551 PyAPI_FUNC(int) PyObject_GenericSetDict(PyObject *, PyObject *, void *);
553 PyAPI_FUNC(Py_hash_t) PyObject_Hash(PyObject *);
554 PyAPI_FUNC(Py_hash_t) PyObject_HashNotImplemented(PyObject *);
555 PyAPI_FUNC(int) PyObject_IsTrue(PyObject *);
556 PyAPI_FUNC(int) PyObject_Not(PyObject *);
557 PyAPI_FUNC(int) PyCallable_Check(PyObject *);
559 PyAPI_FUNC(void) PyObject_ClearWeakRefs(PyObject *);
561 PyAPI_FUNC(void) PyObject_CallFinalizer(PyObject *);
562 PyAPI_FUNC(int) PyObject_CallFinalizerFromDealloc(PyObject *);
568 PyAPI_FUNC(PyObject *)
569 _PyObject_GenericGetAttrWithDict(PyObject *, PyObject *, PyObject *);
571 _PyObject_GenericSetAttrWithDict(PyObject *, PyObject *,
572 PyObject *, PyObject *);
577 PyAPI_FUNC(PyObject *)
586 PyAPI_FUNC(PyObject *) PyObject_Dir(PyObject *);
590 PyAPI_FUNC(int) Py_ReprEnter(PyObject *);
591 PyAPI_FUNC(void) Py_ReprLeave(PyObject *);
717 int lineno, PyObject *op);
723 { if (((PyObject*)OP)->ob_refcnt < 0) \
725 (PyObject *)(OP)); \
756 PyAPI_FUNC(void) _Py_NewReference(PyObject *);
757 PyAPI_FUNC(void) _Py_ForgetReference(PyObject *);
758 PyAPI_FUNC(void) _Py_Dealloc(PyObject *);
761 PyAPI_FUNC(void) _Py_AddToAllObjects(PyObject *, int force);
775 PyAPI_FUNC(void) _Py_Dealloc(PyObject *);
779 (*Py_TYPE(op)->tp_dealloc)((PyObject *)(op)))
785 ((PyObject *)(op))->ob_refcnt++)
789 PyObject *_py_decref_tmp = (PyObject *)(op); \
833 PyObject *_py_tmp = (PyObject *)(op); \
843 PyObject *_py_xincref_tmp = (PyObject *)(op); \
850 PyObject *_py_xdecref_tmp = (PyObject *)(op); \
877 PyObject *_py_tmp = (PyObject *)(op); \
884 PyObject *_py_tmp = (PyObject *)(op); \
895 PyAPI_FUNC(void) Py_IncRef(PyObject *);
896 PyAPI_FUNC(void) Py_DecRef(PyObject *);
909 PyAPI_DATA(PyObject) _Py_NoneStruct; /* Don't use this directly */
919 PyAPI_DATA(PyObject) _Py_NotImplementedStruct; /* Don't use this directly */
1039 PyAPI_FUNC(void) _PyTrash_deposit_object(PyObject*);
1042 PyAPI_DATA(PyObject *) _PyTrash_delete_later;
1046 PyAPI_FUNC(void) _PyTrash_thread_deposit_object(PyObject*);
1063 _PyTrash_thread_deposit_object((PyObject*)op); \