Accessors in Python (getters and setters)

Tobias Brox tobias at stud.cs.uit.no
Wed Jul 19 13:12:33 EDT 2006


[Jason]
> Nothing like being forced to write getters and setters in C++/Java
> before you feel like shooting your source code.  Please don't bring
> this code-rage into Python.

"Code generation" springs into my mind.  IMO, if the code needs to be
generated, the language is not sufficiently advanced.

-- 
Tobias Brox, 69°42'N, 18°57'E



More information about the Python-list mailing list