class Yoba: def foo(self, *args): print(self, args) yoba = Yoba()yoba.foo("bar")Yoba.foo(yoba, "baz")
Standard input is empty
<__main__.Yoba object at 0xb736e9ec> ('bar',) <__main__.Yoba object at 0xb736e9ec> ('baz',)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!