Classes

Gregory Ewing greg.ewing at canterbury.ac.nz
Sun Nov 2 06:32:42 EST 2014


Steven D'Aprano wrote:
> Like all good Pythonistas[1], we hate Java and think that getter/setter
> methods are pointless. But come on, they're not *wrong*,

What's wrong is the statement that getters and setters
are necessary to allow the implementation to change
without changing the interface. That's factually
incorrect in regard to Python.

-- 
Greg



More information about the Python-list mailing list