Renaming the "test" package

For python4, the "test" package should actually be named __pythontest__ or something similar. There are 2 million results for ""test.py"" on google. What do you think? --Yuval

On Sun, Nov 6, 2011 at 1:56 AM, Yuval Greenfield <ubershmekel@gmail.com> wrote:
I don't get what problem you're suggesting there is that such a rename would solve. Python has these honking great things called namespaces (in this case, packages); they make the existence of multiple Python files with the same name a non-issue (just don't use non-absolute imports). Cheers, Chris -- http://rebertia.com

On Sun, Nov 6, 2011 at 3:56 AM, Yuval Greenfield <ubershmekel@gmail.com> wrote:
The test package isn't really meant for normal users anyhow, so shadowing "test" isn't a big deal. I see your point and don't disagree with the concept, but don't think it's a big enough deal to do anything about. Mike

On Wed, Nov 16, 2011 at 3:30 PM, Mike Graham <mikegraham@gmail.com> wrote:
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

On Sun, Nov 6, 2011 at 1:56 AM, Yuval Greenfield <ubershmekel@gmail.com> wrote:
I don't get what problem you're suggesting there is that such a rename would solve. Python has these honking great things called namespaces (in this case, packages); they make the existence of multiple Python files with the same name a non-issue (just don't use non-absolute imports). Cheers, Chris -- http://rebertia.com

On Sun, Nov 6, 2011 at 3:56 AM, Yuval Greenfield <ubershmekel@gmail.com> wrote:
The test package isn't really meant for normal users anyhow, so shadowing "test" isn't a big deal. I see your point and don't disagree with the concept, but don't think it's a big enough deal to do anything about. Mike

On Wed, Nov 16, 2011 at 3:30 PM, Mike Graham <mikegraham@gmail.com> wrote:
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
participants (3)
-
Chris Rebert
-
Mike Graham
-
Yuval Greenfield