Writing Python Extensions
Previous:
Writing Python Extensions
Up:
Writing Python Extensions
Next:
1. Introduction
Contents
1. Introduction
2. Core Material
2.1 Your First Python extension
2.2 A Less Trivial Example
2.3 Refcounting Conventions
2.4 Handling Different Types of Data
2.4.1 From Python to C
2.4.2 From C to Python
2.5 A Sketch of the Python/C API
2.6 A Little More on Exceptions
2.7 Linking your Extension to other C Libraries
2.8 A Note on Style
3. Further Details
3.1 Other Calling Conventions
3.2 Calling Python Callables from C
3.3 Providing a C API for your module
3.4 Writing Extensions in Other Languages
4. Defining New Types
4.1 Your First Extension Type
4.2 Adding Data and Methods
4.3 Supporting Subclassing
4.4 Providing Finer Control over Data Attributes
4.5 Supporting Cyclic Garbage Collection
A. Appropriate C compilers
About this document ...
Writing Python Extensions
Previous:
Writing Python Extensions
Up:
Writing Python Extensions
Next:
1. Introduction
Documentation released on December 24, 2004.
THIS DOCUMENT IS A DRAFT! Comments to
mwh@python.net
please.