Answers for "python use other function for __call__"

2

__call__() python

class Foo:
    def __call__(self, a, b, c):
        # ...

x = Foo()
x(1, 2, 3) # __call__
Posted by: Guest on June-08-2020

Code answers related to "python use other function for __call__"

Python Answers by Framework

Browse Popular Code Answers by Language