Documentation on creating new types with slots in C ?

Alex Martelli aleax at aleax.it
Fri Oct 17 10:58:44 EDT 2003


Boris Boutillier wrote:

> Hi all,
> 
> Of what I heard Python 2.3 now allow creation of new types in C with
> slots.
> Is there somewhere some documentation on this, or at least an example ?

I'm not sure what you mean by "with slots" in this context.  Creating
new types is well documented at:

http://www.python.org/doc/current/api/newTypes.html

and descriptors, assuming that might be what you mean by 'slots',
at http://users.rcn.com/python/download/Descriptor.htm (all the
examples there are in Python, but it should be easy for you to
translate them into C).


Alex





More information about the Python-list mailing list