Home | History | Annotate | Download | only in python2.7

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
77 /* PyObject_HEAD defines the initial segment of every PyObject. */
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
108 } PyObject;
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);
140 typedef PyObject *(*intintargfunc)(PyObject *, int, int) Py_DEPRECATED(2.5);
141 typedef PyObject *(*ssizeargfunc)(PyObject *, Py_ssize_t);
142 typedef PyObject *(*ssizessizeargfunc)(PyObject *, Py_ssize_t, Py_ssize_t);
143 typedef int(*intobjargproc)(PyObject *, int, PyObject *);
144 typedef int(*intintobjargproc)(PyObject *, int, int, PyObject *);
145 typedef int(*ssizeobjargproc)(PyObject *, Py_ssize_t, PyObject *);
146 typedef int(*ssizessizeobjargproc)(PyObject *, Py_ssize_t, Py_ssize_t, PyObject *);
147 typedef int(*objobjargproc)(PyObject *, PyObject *, PyObject *);
152 typedef int (*getreadbufferproc)(PyObject *, int, void **);
153 typedef int (*getwritebufferproc)(PyObject *, int, void **);
154 typedef int (*getsegcountproc)(PyObject *, int *);
155 typedef int (*getcharbufferproc)(PyObject *, int, char **);
157 typedef Py_ssize_t (*readbufferproc)(PyObject *, Py_ssize_t, void **);
158 typedef Py_ssize_t (*writebufferproc)(PyObject *, Py_ssize_t, void **);
159 typedef Py_ssize_t (*segcountproc)(PyObject *, Py_ssize_t *);
160 typedef Py_ssize_t (*charbufferproc)(PyObject *, Py_ssize_t, char **);
166 PyObject *obj; /* owned reference */
181 typedef int (*getbufferproc)(PyObject *, Py_buffer *, int);
182 typedef void (*releasebufferproc)(PyObject *, Py_buffer *);
215 typedef int (*objobjproc)(PyObject *, PyObject *);
216 typedef int (*visitproc)(PyObject *, void *);
217 typedef int (*traverseproc)(PyObject *, visitproc, void *);
306 typedef void (*destructor)(PyObject *);
307 typedef int (*printfunc)(PyObject *, FILE *, int);
308 typedef PyObject *(*getattrfunc)(PyObject *, char *);
309 typedef PyObject *(*getattrofunc)(PyObject *, PyObject *);
310 typedef int (*setattrfunc)(PyObject *, char *, PyObject *);
311 typedef int (*setattrofunc)(PyObject *, PyObject *, PyObject *);
312 typedef int (*cmpfunc)(PyObject *, PyObject *);
313 typedef PyObject *(*reprfunc)(PyObject *);
314 typedef long (*hashfunc)(PyObject *);
315 typedef PyObject *(*richcmpfunc) (PyObject *, PyObject *, int);
316 typedef PyObject *(*getiterfunc) (PyObject *);
317 typedef PyObject *(*iternextfunc) (PyObject *);
318 typedef PyObject *(*descrgetfunc) (PyObject *, PyObject *, PyObject *);
319 typedef int (*descrsetfunc) (PyObject *, PyObject *, PyObject *);
320 typedef int (*initproc)(PyObject *, PyObject *, PyObject *);
321 typedef PyObject *(*newfunc)(struct _typeobject *, PyObject *, PyObject *);
322 typedef PyObject *(*allocfunc)(struct _typeobject *, Py_ssize_t);
384 PyObject *tp_dict;
393 PyObject *tp_bases;
394 PyObject *tp_mro; /* method resolution order */
395 PyObject *tp_cache;
396 PyObject *tp_subclasses;
397 PyObject *tp_weaklist;
427 PyObject *ht_name, *ht_slots;
450 PyAPI_FUNC(PyObject *) PyType_GenericAlloc(PyTypeObject *, Py_ssize_t);
451 PyAPI_FUNC(PyObject *) PyType_GenericNew(PyTypeObject *,
452 PyObject *, PyObject *);
453 PyAPI_FUNC(PyObjectPyObject *);
454 PyAPI_FUNC(PyObject *) _PyObject_LookupSpecial(PyObject *, char *, PyObject **);
459 PyAPI_FUNC(int) PyObject_Print(PyObject *, FILE *, int);
460 PyAPI_FUNC(void) _PyObject_Dump(PyObject *);
461 PyAPI_FUNC(PyObject *) PyObject_Repr(PyObject *);
462 PyAPI_FUNC(PyObject *) _PyObject_Str(PyObject *);
463 PyAPI_FUNC(PyObject *) PyObject_Str(PyObject *);
466 PyAPI_FUNC(PyObject *) PyObject_Unicode(PyObject *);
468 PyAPI_FUNC(int) PyObject_Compare(PyObject *, PyObject *);
469 PyAPI_FUNC(PyObject *) PyObject_RichCompare(PyObject *, PyObject *, int);
470 PyAPI_FUNC(int) PyObject_RichCompareBool(PyObject *, PyObject *, int);
471 PyAPI_FUNC(PyObject *) PyObject_GetAttrString(PyObject *, const char *);
472 PyAPI_FUNC(int) PyObject_SetAttrString(PyObject *, const char *, PyObject *);
473 PyAPI_FUNC(int) PyObject_HasAttrString(PyObject *, const char *);
474 PyAPI_FUNC(PyObject *) PyObject_GetAttr(PyObject *, PyObject *);
475 PyAPI_FUNC(int) PyObject_SetAttr(PyObject *, PyObject *, PyObject *);
476 PyAPI_FUNC(int) PyObject_HasAttr(PyObject *, PyObject *);
477 PyAPI_FUNC(PyObject **) _PyObject_GetDictPtr(PyObject *);
478 PyAPI_FUNC(PyObject *) PyObject_SelfIter(PyObject *);
479 PyAPI_FUNC(PyObject *) _PyObject_NextNotImplemented(PyObject *);
480 PyAPI_FUNC(PyObject *) PyObject_GenericGetAttr(PyObject *, PyObject *);
481 PyAPI_FUNC(int) PyObject_GenericSetAttr(PyObject *,
482 PyObject *, PyObject *);
483 PyAPI_FUNC(long) PyObject_Hash(PyObject *);
484 PyAPI_FUNC(long) PyObject_HashNotImplemented(PyObject *);
485 PyAPI_FUNC(int) PyObject_IsTrue(PyObject *);
486 PyAPI_FUNC(int) PyObject_Not(PyObject *);
487 PyAPI_FUNC(int) PyCallable_Check(PyObject *);
488 PyAPI_FUNC(int) PyNumber_Coerce(PyObject **, PyObject **);
489 PyAPI_FUNC(int) PyNumber_CoerceEx(PyObject **, PyObject **);
491 PyAPI_FUNC(void) PyObject_ClearWeakRefs(PyObject *);
494 extern int _PyObject_SlotCompare(PyObject *, PyObject *);
497 PyAPI_FUNC(PyObject *)
498 _PyObject_GenericGetAttrWithDict(PyObject *, PyObject *, PyObject *);
500 _PyObject_GenericSetAttrWithDict(PyObject *, PyObject *,
501 PyObject *, PyObject *);
509 PyAPI_FUNC(PyObject *) PyObject_Dir(PyObject *);
513 PyAPI_FUNC(int) Py_ReprEnter(PyObject *);
514 PyAPI_FUNC(void) Py_ReprLeave(PyObject *);
707 int lineno, PyObject *op);
708 PyAPI_FUNC(PyObject *) _PyDict_Dummy(void);
709 PyAPI_FUNC(PyObject *) _PySet_Dummy(void);
715 { if (((PyObject*)OP)->ob_refcnt < 0) \
717 (PyObject *)(OP)); \
742 PyAPI_FUNC(void) _Py_NewReference(PyObject *);
743 PyAPI_FUNC(void) _Py_ForgetReference(PyObject *);
744 PyAPI_FUNC(void) _Py_Dealloc(PyObject *);
747 PyAPI_FUNC(void) _Py_AddToAllObjects(PyObject *, int force);
762 (*Py_TYPE(op)->tp_dealloc)((PyObject *)(op)))
767 ((PyObject*)(op))->ob_refcnt++)
772 --((PyObject*)(op))->ob_refcnt != 0) \
775 _Py_Dealloc((PyObject *)(op)); \
815 PyObject *_py_tmp = (PyObject *)(op); \
829 PyAPI_FUNC(void) Py_IncRef(PyObject *);
830 PyAPI_FUNC(void) Py_DecRef(PyObject *);
838 PyAPI_DATA(PyObject) _Py_NoneStruct; /* Don't use this directly */
848 PyAPI_DATA(PyObject) _Py_NotImplementedStruct; /* Don't use this directly */
976 PyAPI_FUNC(void) _PyTrash_deposit_object(PyObject*);
979 PyAPI_DATA(PyObject *) _PyTrash_delete_later;
982 PyAPI_FUNC(void) _PyTrash_thread_deposit_object(PyObject*);
1005 _PyTrash_thread_deposit_object((PyObject*)op); \