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
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+':-)(-:'