3.3. Context Objects#
-
PyTypeObject CpContext_Type#
The type object for the
CpContextObject
class.
-
type CpContextObject#
C implementation of the Python equivalent. Represents a context object with attribute-style access, which also conforms to the context protocol.
-
int CpContext_CheckExact(PyObject *op)#
Checks if the given object is an
CpContextObject
.
-
int CpContext_Check(PyObject *op)#
Checks if the given object is instance of an
CpContextObject
.
-
CpContextObject *CpContext_New(void)#
- Return value: New reference.
Creates a new context and returns it. Returns NULL if an error occurs.