python super() function behavior in metaclass is confused

后端 未结 0 384
挽巷
挽巷 2021-01-16 16:23
class a(type):
    def __call__(cls,*args):
        print(super())
        print(super().__name__)
        
class b(metaclass=a):
        pass

b()

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