Properties transfer between instances of different classes, without subclassing
modelnine at bit-bukket.org
Sat Dec 10 11:12:43 CET 2005
> Ideally, 'tabv.cold' would give me 'tabv', masked where the values are
> I don't want to make 'Tabl' a subclass of 'Temp'. I'd like to use it
> more generically, so that when I define a 3rd class 'Color', I could
> initiate 'Tabv' with an instance of 'Color', accessing the 'Color'
> properties without the 'Temp' properties.
I guess interfaces could make your day:
More information about the Python-list