Documentation on creating new types with slots in C ?
Thomas Heller
theller at python.net
Fri Oct 17 11:20:49 EDT 2003
Alex Martelli <aleax at aleax.it> writes:
> 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).
I would guess he means this:
http://www.python.org/sf/696193
and I would also be interested in an example.
Thomas
More information about the Python-list
mailing list