Basic class implementation question
goldspin at gmail.com
Wed Apr 2 06:55:35 CEST 2008
You might want to consult this.
On Tue, Apr 1, 2008 at 9:43 PM, <hexusnexus at gmail.com> wrote:
> 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"
> This returns (as an error):
> Traceback (most recent call last):
> File "<pyshell#4>", line 1, in <module>
> TypeError: unbound method really() must be called with wontwork
> instance as first argument (got nothing instead)
> Any ideas?
More information about the Python-list