c-extension-tutorial
Contents:
What is an Extension Module?
C Level Representation of Python Structures
Writing a New Function in C
Building and Importing
Error Handling
Abstract Object API
Fancy Argument Parsing
Writing a New Class in C
Common Issues and Bugs
Debugging with GDB
PyMemberDef
vs
PyGetSetDef
Appendix
c-extension-tutorial
Docs
»
Index
Index
A
|
B
|
D
|
G
|
H
|
I
|
L
|
M
|
N
|
O
|
P
|
R
|
S
|
T
|
U
A
allocfunc (C type)
B
binaryfunc (C type)
D
descrgetfunc (C type)
descrsetfunc (C type)
destructor (C type)
G
getattrfunc (C type)
getattrofunc (C type)
getter (C type)
H
hashfunc (C type)
I
initproc (C type)
inquiry (C type)
L
lenfunc (C type)
M
METH_CLASS (C macro)
METH_COEXIST (C macro)
METH_KEYWORDS (C macro)
METH_NOARGS (C macro)
METH_O (C macro)
METH_STATIC (C macro)
METH_VARARGS (C macro)
N
newfunc (C type)
O
objobjproc (C type)
P
Py_CLEAR (C function)
Py_DECREF (C function)
Py_EQ (C macro)
Py_False (C variable)
Py_GE (C macro)
Py_GT (C macro)
Py_INCREF (C function)
Py_LE (C macro)
Py_LT (C macro)
Py_NE (C macro)
Py_None (C variable)
Py_REFCNT (C function)
Py_RETURN_FALSE (C macro)
Py_RETURN_NONE (C macro)
Py_RETURN_TRUE (C macro)
Py_ssize_t (C type)
Py_TPFLAGS_BASE_EXC_SUBCLASS (C macro)
Py_TPFLAGS_BASETYPE (C macro)
Py_TPFLAGS_BYTES_SUBCLASS (C macro)
Py_TPFLAGS_DEFAULT (C macro)
Py_TPFLAGS_DICT_SUBCLASS (C macro)
Py_TPFLAGS_HAVE_FINALIZE (C macro)
Py_TPFLAGS_HAVE_GC (C macro)
Py_TPFLAGS_HEAPTYPE (C macro)
Py_TPFLAGS_LIST_SUBCLASS (C macro)
Py_TPFLAGS_LONG_SUBCLASS (C macro)
Py_TPFLAGS_READY (C macro)
Py_TPFLAGS_READYING (C macro)
Py_TPFLAGS_TUPLE_SUBCLASS (C macro)
Py_TPFLAGS_TYPE_SUBCLASS (C macro)
Py_TPFLAGS_UNICODE_SUBCLASS (C macro)
Py_True (C variable)
Py_TYPE (C function)
Py_XDECREF (C function)
Py_XINCREF (C function)
PyArg_ParseTupleAndKeywords (C function)
PyCFunction (C type)
PyDoc_STRVAR (C function)
PyErr_ExceptionMatches (C function)
PyErr_Format (C function)
PyErr_NoMemory (C function)
PyErr_Occurred (C function)
PyErr_SetString (C function)
PyGetSetDef (C type)
PyGetSetDef.closure (C member)
PyGetSetDef.doc (C member)
PyGetSetDef.get (C member)
PyGetSetDef.name (C member)
PyGetSetDef.set (C member)
PyList_Append (C function)
PyList_Check (C function)
PyList_GET_ITEM (C function)
PyList_GET_SIZE (C function)
PyList_GetItem (C function)
PyList_GetSlice (C function)
PyList_Insert (C function)
PyList_New (C function)
PyList_Reverse (C function)
PyList_SET_ITEM (C function)
PyList_SetItem (C function)
PyList_SetSlice (C function)
PyList_Size (C function)
PyList_Sort (C function)
PyListObject (C type)
PyLong_AsUnsignedLong (C function)
PyLong_Check (C function)
PyLong_FromUnsignedLong (C function)
PyLongObject (C type)
PyMemberDef (C type)
PyMemberDef.flags (C member)
PyMemberDef.name (C member)
PyMemberDef.offset (C member)
PyMemberDef.PyMemberDef.doc (C member)
PyMemberDef.type (C member)
PyMethodDef (C type)
PyMethodDef.ml_doc (C member)
PyMethodDef.ml_flags (C member)
PyMethodDef.ml_meth (C member)
PyMethodDef.ml_name (C member)
PyMODINIT_FUNC (C macro)
PyModule_Create (C function)
PyModuleDef (C type)
PyModuleDef.m_base (C member)
PyModuleDef.m_clear (C member)
PyModuleDef.m_doc (C member)
PyModuleDef.m_free (C member)
PyModuleDef.m_methods (C member)
PyModuleDef.m_name (C member)
PyModuleDef.m_size (C member)
PyModuleDef.m_slots (C member)
PyModuleDef.m_traverse (C member)
PyNumber_Absolute (C function)
PyNumber_Add (C function)
PyNumber_And (C function)
PyNumber_Divmod (C function)
PyNumber_FloorDivide (C function)
PyNumber_Invert (C function)
PyNumber_Lshift (C function)
PyNumber_Negative (C function)
PyNumber_Or (C function)
PyNumber_Positive (C function)
PyNumber_Power (C function)
PyNumber_Remainder (C function)
PyNumber_Rshift (C function)
PyNumber_Subtract (C function)
,
[1]
PyNumber_TrueDivide (C function)
PyNumber_Xor (C function)
PyNumberMethods (C type)
PyObject (C type)
PyObject.ob_refcnt (C member)
PyObject.ob_type (C member)
PyObject_GetAttr (C function)
PyObject_IsTrue (C function)
PyObject_Repr (C function)
PyObject_RichCompareBool (C function)
,
[1]
PyObject_SetAttr (C function)
PySequenceMethods (C type)
PySequenceMethods.sq_ass_item (C member)
PySequenceMethods.sq_concat (C member)
PySequenceMethods.sq_contains (C member)
PySequenceMethods.sq_inplace_concat (C member)
PySequenceMethods.sq_inplace_repeat (C member)
PySequenceMethods.sq_item (C member)
PySequenceMethods.sq_length (C member)
PySequenceMethods.sq_repeat (C member)
Python Enhancement Proposals
PEP 442
PyType_Ready (C function)
PyTypeObject (C type)
PyTypeObject.tp_alloc (C member)
PyTypeObject.tp_as_async (C member)
PyTypeObject.tp_as_buffer (C member)
PyTypeObject.tp_as_mapping (C member)
PyTypeObject.tp_as_number (C member)
PyTypeObject.tp_as_sequence (C member)
PyTypeObject.tp_base (C member)
PyTypeObject.tp_bases (C member)
PyTypeObject.tp_basicsize (C member)
PyTypeObject.tp_cache (C member)
PyTypeObject.tp_call (C member)
PyTypeObject.tp_clear (C member)
PyTypeObject.tp_dealloc (C member)
PyTypeObject.tp_descr_get (C member)
PyTypeObject.tp_descr_set (C member)
PyTypeObject.tp_dict (C member)
PyTypeObject.tp_dictoffset (C member)
PyTypeObject.tp_doc (C member)
PyTypeObject.tp_finalize (C member)
PyTypeObject.tp_flags (C member)
PyTypeObject.tp_free (C member)
PyTypeObject.tp_getattr (C member)
PyTypeObject.tp_getattro (C member)
PyTypeObject.tp_getset (C member)
PyTypeObject.tp_hash (C member)
PyTypeObject.tp_init (C member)
PyTypeObject.tp_is_gc (C member)
PyTypeObject.tp_itemsize (C member)
PyTypeObject.tp_iter (C member)
PyTypeObject.tp_iternext (C member)
PyTypeObject.tp_members (C member)
PyTypeObject.tp_methods (C member)
PyTypeObject.tp_mro (C member)
PyTypeObject.tp_name (C member)
PyTypeObject.tp_new (C member)
PyTypeObject.tp_print (C member)
PyTypeObject.tp_repr (C member)
PyTypeObject.tp_richcompare (C member)
PyTypeObject.tp_setattr (C member)
PyTypeObject.tp_setattrofunc (C member)
PyTypeObject.tp_str (C member)
PyTypeObject.tp_subclasses. (C member)
PyTypeObject.tp_traverse (C member)
PyTypeObject.tp_weaklist (C member)
PyTypeObject.tp_weaklistoffset (C member)
R
reprfunc:: (C type)
richcmpfunc (C type)
S
setattrfunc (C type)
setattrofunc (C type)
setter (C type)
ssizeargfunc (C type)
ssizeobjargproc (C type)
T
T_BOOL (C macro)
T_BYTE (C macro)
T_CHAR (C macro)
T_DOUBLE (C macro)
T_FLOAT (C macro)
T_INT (C macro)
T_LONG (C macro)
T_LONGLONG (C macro)
T_OBJECT (C macro)
T_OBJECT_EX (C macro)
T_PYSSIZET (C macro)
T_SHORT (C macro)
T_STRING (C macro)
T_UBYTE (C macro)
T_UINT (C macro)
T_ULONG (C macro)
T_ULONGLONG (C macro)
T_USHORT (C macro)
ternaryfunc (C type)
U
unaryfunc (C type)