[Python-Dev] Dropping __init__.py requirement for subpackages

Thomas Wouters thomas at python.org
Thu Apr 27 17:49:23 CEST 2006


On 4/27/06, Gustavo Carneiro <gjcarneiro at gmail.com> wrote:

> Besides, Guido's original proposal is not a fix for your problem, either;
> > he only proposes to change the requirement for *sub*packages.
> >
>
>   It *is* a solution for my problem.  I don't need the __init__.py file
> for anything, since I don't need anything defined in the the 'foo'
> namespace, only the subpackages foo.bar and foo.zbr .
>

... No. Guido's original proposal is not a fix for your problem, because *it
doesn't affect the 'foo' namespace*. Guido's original proposal still
requires foo/__init__.py for your namespace to work, it just makes
foo/bar/__init__.py and foo/zbr/__init__.py optional.

--
Thomas Wouters <thomas at python.org>

Hi! I'm a .signature virus! copy me into your .signature file to help me
spread!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20060427/cd4a0488/attachment.htm 


More information about the Python-Dev mailing list