greg.ewing at canterbury.ac.nz
Tue Nov 4 06:38:36 CET 2014
Jean-Michel Pichavant wrote:
> Python uses the descriptor protocol which is
> basically getters and setters. It's is just hidden by a strange decorator
This is about the interface, not the implementation.
"Getters and setters" in this context means designing
the API of your class to have things like getFoo() and
setFoo() in it. That's not just totally unnecessary in
Python, it's counterproductive. It makes the API
tedious to use for no benefit.
More information about the Python-list