cpython/Tools/bgen
Jack Jansen 3d654d6dff Added a class PEP252Mixin. By adding this to your ObjectDefinition you
get PEP-252 style objects in stead of old-fashioned objects.
In stead of defining a GetattrHook you declare a class variable getsetlist,
which contains tuples (name, getcode, setcode, docstring).
Only lightly tested: the code still works if you don't inherit PEP252Mixin
and the code works if you inherit it but don't define any getters
or setters. Also, this will not work together with the "poor mans inheritance"
offered by method chains, so the CF module will remain with old-style
objects until PEP253 is supported too.
2002-11-25 16:36:49 +00:00
..
bgen Added a class PEP252Mixin. By adding this to your ObjectDefinition you 2002-11-25 16:36:49 +00:00
README Removed most of the README text since it is all about the Mac specific 1996-05-24 18:43:47 +00:00

BGEN -- Automatic Generation of Extension Modules
=================================================

This directory contains BGEN -- a package that helps in generating
complete source code for Python extension module.  For examples of its
use, see the Mac Python source distribution (available separately
from the Python ftp archives).  Note that BGEN is not Mac specific!