Re: [Tutor] Python object

2011-02-24 Thread Steve Willoughby
On 24-Feb-11 08:13, James Reynolds wrote: I don't understand what you are trying to do? I'm assuming def GetAllAtrib is a method within a class; perhaps you could copy more the code base? It seems to be locating the three elements you have in that method just fine, but I'm guessing you have ano

Re: [Tutor] Python object

2011-02-24 Thread Peter Otten
Christopher Brookes wrote: > 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 '---

Re: [Tutor] Python object

2011-02-24 Thread James Reynolds
I don't understand what you are trying to do? I'm assuming def GetAllAtrib is a method within a class; perhaps you could copy more the code base? It seems to be locating the three elements you have in that method just fine, but I'm guessing you have another print statement somewhere that is causi

[Tutor] Python object

2011-02-24 Thread Christopher Brookes
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 '---' pr