[Python-ideas] Simpler namespace packages
Alex Light
scialexlight at gmail.com
Mon Jun 20 16:26:37 CEST 2011
On Mon, Jun 20, 2011 at 10:03 AM, Mike Graham <mikegraham at gmail.com> wrote:
> Would it be possible to allow a more simple definition, for example
> putting the dot itself in the filename? Where these would be similar?
>
> site-packages/
> foo/
> __init__.py
> foo.bar.py
> foo.baz/
> __init__.py
> qux.py
> foo.spam.eggs.py
>
> and
>
> site-packages/
> foo/
> __init__.py
> bar.py
> baz/
> __init__.py
> qux.py
> spam/
> __init__.py #empty
> eggs.py
>
I fail to see how the first example is clearer than the second. Indeed
the opposite seems to be true.
What i think you need to understand is that the name of the module is the
same as the path to it.
IMO the current system emphasizes that very strongly and this proposal would
only make the
concept less clear.
--Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20110620/f114d058/attachment.html>
More information about the Python-ideas
mailing list