elleryq
12/29/2017 - 6:56 AM

test_py3_method.py

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
"""