Unbound method error in Python
how is it in Python, (sorry for the newbie question), you can do this:
import string
string.ascii_uppercase(....)
that mean can use the ascii_uppercase() method straightaway, but when
created my own class I have to instantiate it first?
import myclass
print myclass.mymethod(...)
it gives me "unbound method must be called with myclass instance....
Is there a good document I can read on this unbound and bound method? I
just want to use the method without instantiation. thanks.
No comments:
Post a Comment