Skip to content

Instantly share code, notes, and snippets.

@Rimann91
Created February 19, 2017 17:29
Show Gist options
  • Select an option

  • Save Rimann91/62929008af27109f2b7c30478581591d to your computer and use it in GitHub Desktop.

Select an option

Save Rimann91/62929008af27109f2b7c30478581591d to your computer and use it in GitHub Desktop.
>>> class Foo():
... def __init__(self, out):
... self.out = out
... def put(self):
... return self.out
...
>>> test = Foo("something")
>>> print test.put
<bound method Foo.put of <__main__.Foo instance at 0x7fa0bf780dd0>>
>>> print test.put()
something
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment