Basic class implementation question
hexusnexus at gmail.com
hexusnexus at gmail.com
Wed Apr 2 00:43:36 EDT 2008
I can't get call a class for some reason. This must be one of those
newbie questions I hear so much about:
class wontwork:
def really():
print "Hello World"
wontwork.really()
This returns (as an error):
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
wontwork.really()
TypeError: unbound method really() must be called with wontwork
instance as first argument (got nothing instead)
Any ideas?
More information about the Python-list
mailing list