question: usage of __slots__

Aahz aahz at pythoncraft.com
Thu Oct 16 12:29:01 EDT 2003


In article <698f09f8.0310151939.5692369a at posting.google.com>,
Jeremy Fincher <tweedgeezer at hotmail.com> wrote:
>aahz at pythoncraft.com (Aahz) wrote in message news:<bmk8sv$5mb$1 at panix1.panix.com>...
>>>>
>>>> __slots__ are a premature optimization and best avoided.
>>>
>>>It's nice to see that there's *someone* out there with a handle on
>>>every single possible use for Python.
>> 
>> Are you arguing with Guido?
>
>Are you claiming that Guido would, without exception, call __slots__ a
>"premature optimization"?

No, but I don't think he would disagree with that statement in casual
conversation.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan




More information about the Python-list mailing list