class Foo: def bar(self): return 'hi' print Foo.bar()
Standard input is empty
Standard output is empty
Traceback (most recent call last):
File "prog.py", line 5, in <module>
print Foo.bar()
TypeError: unbound method bar() must be called with Foo instance as first argument (got nothing instead)