Documentation on creating new types with slots in C ?

Michael Hudson mwh at python.net
Fri Oct 17 12:16:54 EDT 2003


"Boris Boutillier" <boris.boutillier at arteris.net> writes:

> That was not clear.
> By slots, I mean the equivalent of '__slots__' in pure python,
> ie adding some attribute as offsets at the end of the C description of a
> Type.
> And in fact what I am really looking for is how to describe '__slots__' in the C
> description of a Metaclass.

Either you or I are confused: do you want the slots to appear on the
*type* or on *instances of the type*?

Cheers,
mwh

-- 
  In general, I'd recommend injecting LSD directly into your temples,
  Syd-Barret-style, before mucking with Motif's resource framework.
  The former has far lower odds of leading directly to terminal
  insanity.                                            -- Dan Martinez




More information about the Python-list mailing list