Hi, i'm new in python.
I'm trying to create a small fight program in object.
I've created __init__ (its works) but when i'm trying to display init param
i'm getting param and "None" every time. Why ?
def GetAllAtrib(self):
print '-----------------------------------------------'
print self.name
print self.description
print self.type
print '-----------------------------------------------'
give ->>
-----------------------------------------------
Klaitos
Soldier very strong
Soldier
-----------------------------------------------
*None *<<<<<<<<-- WHY ARE U HERE
??
Yours,
--
Brookes Christopher.
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor