Documentation on creating new types with slots in C ?

Boris Boutillier boris.boutillier at arteris.net
Fri Oct 17 12:07:31 EDT 2003


Thanks Thomas, I think this is exactly what I was looking for.

Boris

On Fri, 17 Oct 2003 17:20:49 +0200, Thomas Heller wrote:

> 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