Skip to content Skip to sidebar Skip to footer
Showing posts with the label Setattr

Why Does The "name" Parameter To __setattr__ Include The Class, But __getattr__ Doesn't?

The following code: class MyClass(): def test(self): self.__x = 0 def __setattr__(… Read more Why Does The "name" Parameter To __setattr__ Include The Class, But __getattr__ Doesn't?