Variable inheritance

Alex Martelli aleaxit at yahoo.com
Wed May 23 05:09:48 EDT 2001


"Rainer Deyke" <root at rainerdeyke.com> wrote in message
news:ZbBO6.8256$CD5.3108352 at news2.rdc2.tx.home.com...
    ...
> This code is broken.  'SmartEvaluate' behaves exactly like 'AceIsNice';

Ooops, you're right -- my bad, sorry.

> I think a better approach here would be to make 'AceIsNice' and
> 'FlatBadLongGood' mixin classes:

Yes, definitely.

> for further derivatives.  Perhaps a better approach would be to put all
code
> in mixin classes and combine them at instantiation time:

That's what I generally do, yes.


Alex






More information about the Python-list mailing list