Copying objects style questions
halley at play-bow.org
Wed Aug 6 21:08:34 CEST 2003
> To forestall further misunderstandings -- this would not work for
> objects with __slots__ (no __dict__) or inheriting from classes with
> __slots__ (wouldn't copy attributes not in __dict__) -- there is
> always more work needed for such cases. But if one uses __slots__
> one *deserves* to have to work a bit harder as a result;-).
I use new-style classes with __slots__ :), because it makes a really
noticeable difference in memory usage if you use dnspython to work
with a good-sized zone (i.e. one with tens of thousands of records).
More information about the Python-list