Automatic Generation of Python Class Files

Bruno Desthuilliers bruno.42.desthuilliers at wtf.websiteburo.oops.com
Tue Oct 30 05:00:02 EDT 2007


Fuzzyman a écrit :
> On Oct 22, 6:43 pm, Steven Bethard <steven.beth... at gmail.com> wrote:
(snip)
>> # Inherit from object. There's no reason to create old-style classes.
> 
> 
> We recently had to change an object pipeline from new style classes to
> old style. A lot of these objects were being created and the *extra
> overhead* of new style classes was killing us. :-)
> 
Maybe a dumb question, but what about __slots__ here ? (NB : never faced 
this kind of problem myself).



More information about the Python-list mailing list