notebook.community
Edit and run
In [1]: class Foo: def write(self, s): print s.upper()
class Foo: def write(self, s): print s.upper()
In [2]: hoo = Foo()
hoo = Foo()
In [3]: print >>hoo, 'hello world'
print >>hoo, 'hello world'
HELLO WORLD