Message11845
Logged In: YES
user_id=105700
Hi Guido,
I think I have a solution for this one, see the attached diff.
I did what you suggested: Make the adressing of the
members dependant from the metatype.
The etype struct has lost its members[1] field, to make it
easier to extend the structure. Instead, the allocator always
adds one to the size, to have the sentinel in place.
I did not yet publish the etype stucture, since I didn't find
a good name and place for it.
Testing was also not very thorow. I just checked that types
work from Python and that I can add __slots__ to them.
Will re-port this stuff to my Py2.2 Stackless base and try it
out as base type for my own C types.
ciao - chris |
|
Date |
User |
Action |
Args |
2007-08-23 14:04:39 | admin | link | issue591586 messages |
2007-08-23 14:04:39 | admin | create | |
|