Created
December 29, 2017 06:56
-
-
Save elleryq/932d36eb9f26e138d87585ce598f24bd 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 call(self, msg): | |
| print(self.__class__, msg) | |
| class Single: | |
| def call(self, msg): | |
| Foo.call(self, msg) | |
| Single().call('hello') | |
| """ | |
| <class '__main__.Single'> hello | |
| """ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment