Next:
Introduction
Up:
Extending and Embedding the
Previous:
Contents
Extending Python with C or C++ code
Introduction
A Simple Example
Intermezzo: Errors and Exceptions
Back to the Example
The Module's Method Table and Initialization Function
Compilation and Linkage
Calling Python Functions From C
Format Strings for PyArg_ParseTuple()
The Py_BuildValue() Function
Reference Counts
Introduction
Reference Counting in Python
Ownership Rules
Thin Ice
NULL Pointers
Writing Extensions in C++
guido@cwi.nl