Does Python really follow its philosophy of "Readability counts"?
Paul Rubin
http
Wed Jan 14 12:00:38 EST 2009
Bruno Desthuilliers <bruno.42.desthuilliers at websiteburo.invalid> writes:
> Given that the convention for "protected" attributes in Python is to
> prefix them with an underscore, I fail to see how one could
> "accidentally" mess with implementation details. Typing a leading
> underscore is rarely a typo.
We are talking about the accidental creation of new attributes in
places outside the initializer. The underscore convention does
nothing to prevent that.
More information about the Python-list
mailing list