Jean-Michel Pichavant wrote:
Python uses the descriptor protocol which is
basically getters and setters. It's is just hidden by a strange decorator
syntax.

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.

--
Greg
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to