Re: Pickling and unpickling inherited attributes
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Pickling and unpickling inherited attributes

From: Alex <OurLab@gmail.com>
Date: Wed Nov 02 2005 - 03:59:03 CET

> >
> 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.
Received on Mon Nov 21 01:13:31 2005