Created
February 19, 2017 17:29
-
-
Save Rimann91/62929008af27109f2b7c30478581591d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >>> 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