Is inheritance broken?
Rainer Deyke
root at rainerdeyke.com
Wed Mar 28 21:48:52 EST 2001
"Skip Montanaro" <skip at pobox.com> wrote in message
news:mailman.985809879.27201.python-list at python.org...
>
> Jonathan> Ugly and error prone, no?
>
> Well, perhaps there is a better way... ;-)
>
> How about creating mixins, then composing a set of classes from them:
An alternate approach would be to explicitly pull methods into a class:
class Square(Rectangle, Rhombus):
side = Rhombus.side
--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games - http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor
More information about the Python-list
mailing list