[Pyrex] Using __slots__

Ashley Walsh ashley.walsh at synengco.com
Mon May 12 05:39:25 CEST 2003


Hi,

Just a small heads up for something I noticed while playing around with
Pyrex.

Using __slots__=[] doesn't prevent creation of an instance dictionary
because the attributes are set on the class object with
PyObject_SetAttrString after calling PyClassNew, rather than passing the
attributes in the class dictionary.

Cheers,
Ashley





More information about the Pyrex mailing list