error when calling method of class

Sean Farrow sean.farrow at seanfarrow.co.uk
Fri Jun 8 09:48:52 EDT 2007


Hi: 
I have defined a class in that class is a method defined as follows:
def splitTime(n):
seconds =float(n)
I call the method in another procedure as follows:
sefl.splitTime(200)
the traceback states that splitTime takes one argument two given. why is 
this occuring?
if I try calling it like:
splitTime(200)
I get a name resultion error saying that the global name splitTime is 
not defined.
Any help apreciated.
Sean.



More information about the Python-list mailing list