TypeError: unbound method
Ronn Ross
ronn.ross at gmail.com
Thu Jul 16 20:57:03 EDT 2009
Hello all,
Created a python file that has a class and three methods. When I jump into
interactive mode I import like so:
from <file> import <class>
Now when I try to use a method from the class:
var1 = class.method()
It give me this error:
TypeError: unbound method <methodname> must be called with <classname>
instance as first argument (got int instance instead)
I'm not sure what is going on event after consulting with google
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090716/3a52d02f/attachment.html>
More information about the Python-list
mailing list