Pickling and unpickling inherited attributes

Alex OurLab at gmail.com
Tue Nov 1 21:59:03 EST 2005


> >
> OK, but do be aware that slots was intended solely as a
> memory-conservation measure where large numbers of objects are being
> created. You are therefore subverting its true intent by using it to
> limit the assignment of extra attributes (and there has been much recent
> discussion on this list, though not in this thread, about what to do
> instead.
>
> regards
>   Steve
> --


Oh, that too... We have tens of thousands of these objects in the
memory at the same moment, so memory conservation is another reason for
slots.




More information about the Python-list mailing list