What can __get__
achieve that can't be done with with a getter method on the owning object?
I can think of better separation of concerns but I guess there is more.
It's used for descriptors. They are kind of like Python's getters/setters, and properties, but better. It's how Python implements the Uniform Access Principle. Python Descriptors
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With