class Foo object def bar self Returns an instance of self return self

1
2
3
4
5
6
7
class Foo(object):
def bar(self):
""""
Returns an instance of self.
"""
return self