Accessing __slots__ from C

Chris ceball at users.sourceforge.net
Thu Sep 11 16:10:23 EDT 2008


Christian Heimes <lists <at> cheimes.de> writes:
...
> You can use slots to increase the performance but it doesn't work
> like you think. If you need it *really* fast than write a C
> Extension, store the data in a C struct and access the data via
> PyMemberDef.

Ok, thanks for the confirmation. We'd been hoping to avoid creating
such a struct...

Chris





More information about the Python-list mailing list