[Python-ideas] PEP: Shorthand Symbol for "self"
Georg Brandl
g.brandl at gmx.net
Thu Aug 28 00:27:19 CEST 2008
Russ Paielli schrieb:
> Normally I agree with you on the single-character identifiers, but I
> consider this case an exception. Lets not forget that C++ and Java use
> zero-character identifiers for "self", and I don't hear a din of
> complaints that it harms readability.
Yes, because most have coding styles that mandate hungarian prefixes on
such identifiers. And "mInfo" isn't really more readable than "self.info".
Georg
More information about the Python-ideas
mailing list