[Python-ideas] Renaming the "test" package

Yuval Greenfield ubershmekel at gmail.com
Wed Nov 16 16:55:21 CET 2011


On Wed, Nov 16, 2011 at 3:30 PM, Mike Graham <mikegraham at gmail.com> wrote:

> On Sun, Nov 6, 2011 at 3:56 AM, Yuval Greenfield <ubershmekel at gmail.com>
> wrote:
> ...
> Mike
>


I should have explained.


A file of mine was named "test.py" and one day I got
some bizarre "AttributeError: 'module' object has no attribute..."
because my test.py was moved elsewhere. So instead of a failed import which
would have been more obvious I got that.

I agree there's no direct damage done by this "shadowing". Maybe the better
word is "ghosting" because it appears to give something though it doesn't.


--Yuval
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20111116/afe228d1/attachment.html>


More information about the Python-ideas mailing list