fork(1) download
  1. class Foo:
  2. def bar(self):
  3. return 'hi'
  4.  
  5. print Foo.bar()
Runtime error #stdin #stdout #stderr 0.08s 8880KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
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)