10 sec poll - please reply!
Tim Chase
python.list at tim.thechases.com
Tue Nov 20 20:39:02 EST 2012
On 11/20/12 19:20, Steven D'Aprano wrote:
> *Accidental* shadowing of names is a bad thing, because you get
> unexpected bugs. *Deliberate* shadowing is not. We're all
> consenting adults here, if somebody calls "from module import
> type", and shadows the builtin type, that's their right to shoot
> themselves in the foot. Or not, as the case may be.
Python even allows you to unshoot your foot by doing
from module import type as unshadowed_type
So others can have your poorly-named cake and eat it too. Or some
such confuddling of aphorisms.
-tkc
More information about the Python-list
mailing list