Re: It's ok to __slots__ for what they were intended (was: Don't use __slots__ (was Re: Why custom objects take so much memory?))

2007-12-21 Thread Chris Mellon
On 20 Dec 2007 19:50:31 -0800, Aahz [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Carl Banks [EMAIL PROTECTED] wrote: On Dec 18, 4:49 pm, [EMAIL PROTECTED] (Aahz) wrote: In article [EMAIL PROTECTED], Chris Mellon [EMAIL PROTECTED] wrote: You can reduce the size of new-style

Re: It's ok to __slots__ for what they were intended (was: Don't use __slots__ (was Re: Why custom objects take so much memory?))

2007-12-20 Thread Aahz
In article [EMAIL PROTECTED], Carl Banks [EMAIL PROTECTED] wrote: On Dec 18, 4:49 pm, [EMAIL PROTECTED] (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

Re: It's ok to __slots__ for what they were intended (was: Don't use __slots__ (was Re: Why custom objects take so much memory?))

2007-12-18 Thread Carl Banks
On Dec 18, 4:49 pm, [EMAIL PROTECTED] (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