How does __setattr__ and __getattribute__ interact in Python?

前端 未结 0 1499
清歌不尽
清歌不尽 2021-02-04 22:51
class Test():
    def __init__(self,age):
        self.age=age
    def __getattribute__(self,attribute):
        print("Initializing getattribute")
        ret         


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