object.h File Reference

Classes

struct  _object
 
struct  PyVarObject
 
struct  PyType_Slot
 
struct  PyType_Spec
 

Macros

#define _PyObject_HEAD_EXTRA
 
#define _PyObject_EXTRA_INIT
 
#define PyObject_HEAD
 
#define PyObject_HEAD_INIT(type)
 
#define PyVarObject_HEAD_INIT(type, size)
 
#define PyObject_VAR_HEAD
 
#define Py_INVALID_SIZE
 
#define _PyObject_CAST(op)
 
#define _PyObject_CAST_CONST(op)
 
#define _PyVarObject_CAST(op)
 
#define Py_REFCNT(ob)
 
#define Py_TYPE(ob)
 
#define Py_SIZE(ob)
 
#define Py_IS_TYPE(ob, type)
 
#define Py_SET_REFCNT(ob, refcnt)
 
#define Py_SET_TYPE(ob, type)
 
#define Py_SET_SIZE(ob, size)
 
#define PyObject_TypeCheck(ob, tp)
 
#define Py_PRINT_RAW
 
#define Py_TPFLAGS_HEAPTYPE
 
#define Py_TPFLAGS_BASETYPE
 
#define Py_TPFLAGS_HAVE_VECTORCALL
 
#define _Py_TPFLAGS_HAVE_VECTORCALL
 
#define Py_TPFLAGS_READY
 
#define Py_TPFLAGS_READYING
 
#define Py_TPFLAGS_HAVE_GC
 
#define Py_TPFLAGS_HAVE_STACKLESS_EXTENSION
 
#define Py_TPFLAGS_METHOD_DESCRIPTOR
 
#define Py_TPFLAGS_HAVE_VERSION_TAG
 
#define Py_TPFLAGS_VALID_VERSION_TAG
 
#define Py_TPFLAGS_IS_ABSTRACT
 
#define Py_TPFLAGS_LONG_SUBCLASS
 
#define Py_TPFLAGS_LIST_SUBCLASS
 
#define Py_TPFLAGS_TUPLE_SUBCLASS
 
#define Py_TPFLAGS_BYTES_SUBCLASS
 
#define Py_TPFLAGS_UNICODE_SUBCLASS
 
#define Py_TPFLAGS_DICT_SUBCLASS
 
#define Py_TPFLAGS_BASE_EXC_SUBCLASS
 
#define Py_TPFLAGS_TYPE_SUBCLASS
 
#define Py_TPFLAGS_DEFAULT
 
#define Py_TPFLAGS_HAVE_FINALIZE
 
#define Py_INCREF(op)
 
#define Py_DECREF(op)
 
#define Py_CLEAR(op)
 
#define Py_XINCREF(op)
 
#define Py_XDECREF(op)
 
#define Py_None
 
#define Py_RETURN_NONE
 
#define Py_NotImplemented
 
#define Py_RETURN_NOTIMPLEMENTED
 
#define Py_LT
 
#define Py_LE
 
#define Py_EQ
 
#define Py_NE
 
#define Py_GT
 
#define Py_GE
 
#define Py_RETURN_RICHCOMPARE(val1, val2, op)
 
#define Py_CPYTHON_OBJECT_H
 
#define PyType_FastSubclass(type, flag)
 
#define PyType_Check(op)
 
#define PyType_CheckExact(op)
 

Typedefs

typedef struct _typeobject PyTypeObject
 
typedef struct _object PyObject
 
typedef PyObject *(* unaryfunc) (PyObject *)
 
typedef PyObject *(* binaryfunc) (PyObject *, PyObject *)
 
typedef PyObject *(* ternaryfunc) (PyObject *, PyObject *, PyObject *)
 
typedef int(* inquiry) (PyObject *)
 
typedef Py_ssize_t(* lenfunc) (PyObject *)
 
typedef PyObject *(* ssizeargfunc) (PyObject *, Py_ssize_t)
 
typedef PyObject *(* ssizessizeargfunc) (PyObject *, Py_ssize_t, Py_ssize_t)
 
typedef int(* ssizeobjargproc) (PyObject *, Py_ssize_t, PyObject *)
 
typedef int(* ssizessizeobjargproc) (PyObject *, Py_ssize_t, Py_ssize_t, PyObject *)
 
typedef int(* objobjargproc) (PyObject *, PyObject *, PyObject *)
 
typedef int(* objobjproc) (PyObject *, PyObject *)
 
typedef int(* visitproc) (PyObject *, void *)
 
typedef int(* traverseproc) (PyObject *, visitproc, void *)
 
typedef void(* freefunc) (void *)
 
typedef void(* destructor) (PyObject *)
 
typedef PyObject *(* getattrfunc) (PyObject *, char *)
 
typedef PyObject *(* getattrofunc) (PyObject *, PyObject *)
 
typedef int(* setattrfunc) (PyObject *, char *, PyObject *)
 
typedef int(* setattrofunc) (PyObject *, PyObject *, PyObject *)
 
typedef PyObject *(* reprfunc) (PyObject *)
 
typedef Py_hash_t(* hashfunc) (PyObject *)
 
typedef PyObject *(* richcmpfunc) (PyObject *, PyObject *, int)
 
typedef PyObject *(* getiterfunc) (PyObject *)
 
typedef PyObject *(* iternextfunc) (PyObject *)
 
typedef PyObject *(* descrgetfunc) (PyObject *, PyObject *, PyObject *)
 
typedef int(* descrsetfunc) (PyObject *, PyObject *, PyObject *)
 
typedef int(* initproc) (PyObject *, PyObject *, PyObject *)
 
typedef PyObject *(* newfunc) (PyTypeObject *, PyObject *, PyObject *)
 
typedef PyObject *(* allocfunc) (PyTypeObject *, Py_ssize_t)
 

Functions

static int _Py_IS_TYPE (const PyObject *ob, const PyTypeObject *type)
 
static void _Py_SET_REFCNT (PyObject *ob, Py_ssize_t refcnt)
 
static void _Py_SET_TYPE (PyObject *ob, PyTypeObject *type)
 
static void _Py_SET_SIZE (PyVarObject *ob, Py_ssize_t size)
 
 PyAPI_FUNC (PyObject *) PyType_FromSpec(PyType_Spec *)
 
PyObjectPyAPI_FUNC (void *) PyType_GetSlot(PyTypeObject *
 
 PyAPI_FUNC (int) PyType_IsSubtype(PyTypeObject *
 
 PyAPI_DATA (PyTypeObject) PyType_Type
 
 PyAPI_FUNC (unsigned long) PyType_GetFlags(PyTypeObject *)
 
PyObject PyObjectPyAPI_FUNC (unsigned int) PyType_ClearCache(void)
 
 PyAPI_FUNC (void) PyType_Modified(PyTypeObject *)
 
PyObject PyObject PyObject PyObject void * PyAPI_FUNC (Py_hash_t) PyObject_Hash(PyObject *)
 
static void _Py_INCREF (PyObject *op)
 
static void _Py_DECREF (PyObject *op)
 
static void _Py_XINCREF (PyObject *op)
 
static void _Py_XDECREF (PyObject *op)
 
 PyAPI_DATA (PyObject) _Py_NoneStruct
 
static int PyType_HasFeature (PyTypeObject *type, unsigned long feature)
 
static int _PyType_Check (PyObject *op)
 
static int _PyType_CheckExact (PyObject *op)
 

Variables

PyObject int
 
 Py_ssize_t
 

Macro Definition Documentation

◆ _PyObject_HEAD_EXTRA

#define _PyObject_HEAD_EXTRA

◆ _PyObject_EXTRA_INIT

#define _PyObject_EXTRA_INIT

◆ PyObject_HEAD

#define PyObject_HEAD

◆ PyObject_HEAD_INIT

#define PyObject_HEAD_INIT (   type)

◆ PyVarObject_HEAD_INIT

#define PyVarObject_HEAD_INIT (   type,
  size 
)

◆ PyObject_VAR_HEAD

#define PyObject_VAR_HEAD

◆ Py_INVALID_SIZE

#define Py_INVALID_SIZE

◆ _PyObject_CAST

#define _PyObject_CAST (   op)

◆ _PyObject_CAST_CONST

#define _PyObject_CAST_CONST (   op)

◆ _PyVarObject_CAST

#define _PyVarObject_CAST (   op)

◆ Py_REFCNT

#define Py_REFCNT (   ob)

◆ Py_TYPE

#define Py_TYPE (   ob)

◆ Py_SIZE

#define Py_SIZE (   ob)

◆ Py_IS_TYPE

#define Py_IS_TYPE (   ob,
  type 
)

◆ Py_SET_REFCNT

#define Py_SET_REFCNT (   ob,
  refcnt 
)

◆ Py_SET_TYPE

#define Py_SET_TYPE (   ob,
  type 
)

◆ Py_SET_SIZE

#define Py_SET_SIZE (   ob,
  size 
)

◆ PyObject_TypeCheck

#define PyObject_TypeCheck (   ob,
  tp 
)

◆ Py_PRINT_RAW

#define Py_PRINT_RAW

◆ Py_TPFLAGS_HEAPTYPE

#define Py_TPFLAGS_HEAPTYPE

◆ Py_TPFLAGS_BASETYPE

#define Py_TPFLAGS_BASETYPE

◆ Py_TPFLAGS_HAVE_VECTORCALL

#define Py_TPFLAGS_HAVE_VECTORCALL

◆ _Py_TPFLAGS_HAVE_VECTORCALL

#define _Py_TPFLAGS_HAVE_VECTORCALL

◆ Py_TPFLAGS_READY

#define Py_TPFLAGS_READY

◆ Py_TPFLAGS_READYING

#define Py_TPFLAGS_READYING

◆ Py_TPFLAGS_HAVE_GC

#define Py_TPFLAGS_HAVE_GC

◆ Py_TPFLAGS_HAVE_STACKLESS_EXTENSION

#define Py_TPFLAGS_HAVE_STACKLESS_EXTENSION

◆ Py_TPFLAGS_METHOD_DESCRIPTOR

#define Py_TPFLAGS_METHOD_DESCRIPTOR

◆ Py_TPFLAGS_HAVE_VERSION_TAG

#define Py_TPFLAGS_HAVE_VERSION_TAG

◆ Py_TPFLAGS_VALID_VERSION_TAG

#define Py_TPFLAGS_VALID_VERSION_TAG

◆ Py_TPFLAGS_IS_ABSTRACT

#define Py_TPFLAGS_IS_ABSTRACT

◆ Py_TPFLAGS_LONG_SUBCLASS

#define Py_TPFLAGS_LONG_SUBCLASS

◆ Py_TPFLAGS_LIST_SUBCLASS

#define Py_TPFLAGS_LIST_SUBCLASS

◆ Py_TPFLAGS_TUPLE_SUBCLASS

#define Py_TPFLAGS_TUPLE_SUBCLASS

◆ Py_TPFLAGS_BYTES_SUBCLASS

#define Py_TPFLAGS_BYTES_SUBCLASS

◆ Py_TPFLAGS_UNICODE_SUBCLASS

#define Py_TPFLAGS_UNICODE_SUBCLASS

◆ Py_TPFLAGS_DICT_SUBCLASS

#define Py_TPFLAGS_DICT_SUBCLASS

◆ Py_TPFLAGS_BASE_EXC_SUBCLASS

#define Py_TPFLAGS_BASE_EXC_SUBCLASS

◆ Py_TPFLAGS_TYPE_SUBCLASS

#define Py_TPFLAGS_TYPE_SUBCLASS

◆ Py_TPFLAGS_DEFAULT

#define Py_TPFLAGS_DEFAULT

◆ Py_TPFLAGS_HAVE_FINALIZE

#define Py_TPFLAGS_HAVE_FINALIZE

◆ Py_INCREF

#define Py_INCREF (   op)

◆ Py_DECREF

#define Py_DECREF (   op)

◆ Py_CLEAR

#define Py_CLEAR (   op)

◆ Py_XINCREF

#define Py_XINCREF (   op)

◆ Py_XDECREF

#define Py_XDECREF (   op)

◆ Py_None

#define Py_None

◆ Py_RETURN_NONE

#define Py_RETURN_NONE

◆ Py_NotImplemented

#define Py_NotImplemented

◆ Py_RETURN_NOTIMPLEMENTED

#define Py_RETURN_NOTIMPLEMENTED

◆ Py_LT

#define Py_LT

◆ Py_LE

#define Py_LE

◆ Py_EQ

#define Py_EQ

◆ Py_NE

#define Py_NE

◆ Py_GT

#define Py_GT

◆ Py_GE

#define Py_GE

◆ Py_RETURN_RICHCOMPARE

#define Py_RETURN_RICHCOMPARE (   val1,
  val2,
  op 
)

◆ Py_CPYTHON_OBJECT_H

#define Py_CPYTHON_OBJECT_H

◆ PyType_FastSubclass

#define PyType_FastSubclass (   type,
  flag 
)

◆ PyType_Check

#define PyType_Check (   op)

◆ PyType_CheckExact

#define PyType_CheckExact (   op)

Typedef Documentation

◆ PyTypeObject

typedef struct _typeobject PyTypeObject

◆ PyObject

typedef struct _object PyObject

◆ unaryfunc

typedef PyObject*(* unaryfunc) (PyObject *)

◆ binaryfunc

typedef PyObject*(* binaryfunc) (PyObject *, PyObject *)

◆ ternaryfunc

typedef PyObject*(* ternaryfunc) (PyObject *, PyObject *, PyObject *)

◆ inquiry

typedef int(* inquiry) (PyObject *)

◆ lenfunc

typedef Py_ssize_t(* lenfunc) (PyObject *)

◆ ssizeargfunc

typedef PyObject*(* ssizeargfunc) (PyObject *, Py_ssize_t)

◆ ssizessizeargfunc

typedef PyObject*(* ssizessizeargfunc) (PyObject *, Py_ssize_t, Py_ssize_t)

◆ ssizeobjargproc

typedef int(* ssizeobjargproc) (PyObject *, Py_ssize_t, PyObject *)

◆ ssizessizeobjargproc

typedef int(* ssizessizeobjargproc) (PyObject *, Py_ssize_t, Py_ssize_t, PyObject *)

◆ objobjargproc

typedef int(* objobjargproc) (PyObject *, PyObject *, PyObject *)

◆ objobjproc

typedef int(* objobjproc) (PyObject *, PyObject *)

◆ visitproc

typedef int(* visitproc) (PyObject *, void *)

◆ traverseproc

typedef int(* traverseproc) (PyObject *, visitproc, void *)

◆ freefunc

typedef void(* freefunc) (void *)

◆ destructor

◆ getattrfunc

typedef PyObject*(* getattrfunc) (PyObject *, char *)

◆ getattrofunc

typedef PyObject*(* getattrofunc) (PyObject *, PyObject *)

◆ setattrfunc

typedef int(* setattrfunc) (PyObject *, char *, PyObject *)

◆ setattrofunc

typedef int(* setattrofunc) (PyObject *, PyObject *, PyObject *)

◆ reprfunc

typedef PyObject*(* reprfunc) (PyObject *)

◆ hashfunc

typedef Py_hash_t(* hashfunc) (PyObject *)

◆ richcmpfunc

typedef PyObject*(* richcmpfunc) (PyObject *, PyObject *, int)

◆ getiterfunc

typedef PyObject*(* getiterfunc) (PyObject *)

◆ iternextfunc

typedef PyObject*(* iternextfunc) (PyObject *)

◆ descrgetfunc

typedef PyObject*(* descrgetfunc) (PyObject *, PyObject *, PyObject *)

◆ descrsetfunc

typedef int(* descrsetfunc) (PyObject *, PyObject *, PyObject *)

◆ initproc

typedef int(* initproc) (PyObject *, PyObject *, PyObject *)

◆ newfunc

typedef PyObject*(* newfunc) (PyTypeObject *, PyObject *, PyObject *)

◆ allocfunc

typedef PyObject*(* allocfunc) (PyTypeObject *, Py_ssize_t)

Function Documentation

◆ _Py_IS_TYPE()

static int _Py_IS_TYPE ( const PyObject ob,
const PyTypeObject type 
)
static

◆ _Py_SET_REFCNT()

static void _Py_SET_REFCNT ( PyObject ob,
Py_ssize_t  refcnt 
)
static

◆ _Py_SET_TYPE()

static void _Py_SET_TYPE ( PyObject ob,
PyTypeObject type 
)
static

◆ _Py_SET_SIZE()

static void _Py_SET_SIZE ( PyVarObject ob,
Py_ssize_t  size 
)
static

◆ PyAPI_FUNC() [1/7]

PyAPI_FUNC ( PyObject )

◆ PyAPI_FUNC() [2/7]

PyObject* PyAPI_FUNC ( void *  )

◆ PyAPI_FUNC() [3/7]

PyAPI_FUNC ( int  )

◆ PyAPI_DATA() [1/2]

PyAPI_DATA ( PyTypeObject  )

◆ PyAPI_FUNC() [4/7]

PyAPI_FUNC ( unsigned long  )

◆ PyAPI_FUNC() [5/7]

PyObject PyObject* PyAPI_FUNC ( unsigned int  )

◆ PyAPI_FUNC() [6/7]

PyAPI_FUNC ( void  )

◆ PyAPI_FUNC() [7/7]

PyObject PyObject PyObject PyObject void* PyAPI_FUNC ( Py_hash_t  )

◆ _Py_INCREF()

static void _Py_INCREF ( PyObject op)
static

◆ _Py_DECREF()

static void _Py_DECREF ( PyObject op)
static

◆ _Py_XINCREF()

static void _Py_XINCREF ( PyObject op)
static

◆ _Py_XDECREF()

static void _Py_XDECREF ( PyObject op)
static

◆ PyAPI_DATA() [2/2]

PyAPI_DATA ( PyObject  )

◆ PyType_HasFeature()

static int PyType_HasFeature ( PyTypeObject type,
unsigned long  feature 
)
static

◆ _PyType_Check()

static int _PyType_Check ( PyObject op)
static

◆ _PyType_CheckExact()

static int _PyType_CheckExact ( PyObject op)
static

Variable Documentation

◆ int

PyObject int

◆ Py_ssize_t