How do I properly override __setattr__ and __getattribute__ on new-style classes in Python?

后端 未结 2 1589
慢半拍i
慢半拍i 2020-12-08 06:52

I want to override my Python class\'s __getattribute__ and __setattr__ methods. My use case is the usual one: I have a few special names that I wan

2条回答
提交回复
热议问题