Aahz wrote:

> In article <[EMAIL PROTECTED]>,
> Chris Mellon <[EMAIL PROTECTED]> wrote:
>> 
>> You can reduce the size of new-style classes (inherit from object) by
>> quite a bit if you use __slots__ to eliminate the class dictionary.
> 
> You can also reduce your functionality quite a bit by using __slots__.
> Someday I'll have time to write up a proper page about why you
> shouldn't use __slots__....

Although admittedly this *is* one of the cases where __slots__ is being
suggested for it's intended use - where memory issues require smaller
objects.

Of course, a better result can probably be achieved by using a different
algorithm or technology (database?).

Tim Delaney
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to