Copy with __slots__

Alex Martelli aleax at
Fri Sep 20 14:56:30 EDT 2002

Antonio Cuni wrote:

> Alex Martelli wrote:
>> This doesn't deal with inherited __slots__.
> [cut]
> you're right, I couldn't think of it :-(
>> Some care
>> is needed, though (I can think of several possible anomalies).
> what kind of anomalies?

For example, slots with the same name might be present
in more than one base, but it would be better to only
copy them once.


More information about the Python-list mailing list