Copy with __slots__

Alex Martelli aleax at aleax.it
Fri Sep 20 20:56:30 CEST 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.


Alex




More information about the Python-list mailing list