[Python-Dev] Keeping __init__.py empty for Python packages used for module grouping.

"Martin v. Löwis" martin at v.loewis.de
Tue Jan 25 00:04:03 CET 2011


> If that pattern is a goal, having all versions of the namespace's
> __init__.py empty of anything but the __path__-munging majyk /
> boilerplate is required to make such installs work regardless of the
> order of PYTHONPATH.

With PEP 382, having extensible packages won't contradict to having
a non-trivial __init__.py, and no __path__-munging will be necessary.

Regards,
Martin


More information about the Python-Dev mailing list