Skip to content

Instantly share code, notes, and snippets.

@elleryq
Created December 29, 2017 06:56
Show Gist options
  • Save elleryq/932d36eb9f26e138d87585ce598f24bd to your computer and use it in GitHub Desktop.
Save elleryq/932d36eb9f26e138d87585ce598f24bd to your computer and use it in GitHub Desktop.
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