GNU Info

Info Node: (python2.1-ext.info)Defining New Types

(python2.1-ext.info)Defining New Types


Next: Building C and C++ Extensions on UNIX Prev: Extending Python with C or C++ Up: Top
Enter node , (file) or (file)node

Defining New Types
******************

This manual section was written by Michael Hudson <mwh@python.net>.
As mentioned in the last chapter, Python allows the writer of an
extension module to define new types that can be manipulated from
Python code, much like strings and lists in core Python.

This is not hard; the code for all extension types follows a pattern,
but there are some details that you need to understand before you can
get started.

Basics
Type Methods

automatically generated by info2www version 1.2.2.9