Can I change the __call__ of a Python Object without rewriting the code?

后端 未结 0 625
难免孤独
难免孤独 2021-02-06 01:23

Consider the following scenario in pseudo-python-code:

class Component_i: # same for i = 1,2,3,...
    __call__(self, input):
        return input

class MyClass:         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题