Accessors in Python (getters and setters)
mystilleef
mystilleef at gmail.com
Thu Jul 13 04:14:06 EDT 2006
Maric Michaud wrote:
> Not python developers.
Nonsense!
> But that's not python philosophy.
Python doesn't have any philosophy with regards to naming identifiers.
> But they are in Python and that is the python's philosophy. All attribute or
> method not beginning with an '_' *is* API.
Right, and what if I want to change a private API to a public one. How
does that solve my naming issues.
> And in python the reverse can be true :
The reverse is hardly ever true. 90% of public APIs in almost all
languages are methods or functions.
More information about the Python-list
mailing list