RE: [IronPython] not support Mixin

2005-05-27 Thread Jim Hugunin
Chu Kevin wrote: > >>>class RoseLoveSomebodyElse: >def sayGoodBye(self): >print "Let's say goodbye tonight." > > >>>lover.__bases__+=(RoseLoveSomebodyElse,) > > >>>John_and_Rose.sayGoodBye() > a error occur > > IronPython.Objects.PythonAttributeError: 'lover' object has no > attribu

[IronPython] not support Mixin

2005-05-26 Thread Chu Kevin
I run this code: [EMAIL PROTECTED] /tmp]# vi Lover.py class lover: def __init__(self,man='man',woman='woman'): self.lover='When a '+man+' love a '+woman print self.lover def smile(self): print self.lover+':-)' def kiss(self): print self.lover+':-)(-:'