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


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to