[issue6495] particular variable's name case exception attributeError

Amaury Forgeot d'Arc report at bugs.python.org
Thu Jul 16 13:22:07 CEST 2009


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

Well, "Errors should never pass silently."
In this case, it is possible to replace "Person.population" by
"self.__class__.population".

This said, it could be interesting to cleanup modules in a more
predictive way, for example in the reverse order of their import order.

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6495>
_______________________________________


More information about the Python-bugs-list mailing list