[Python-Dev] Dropping init.py requirement for subpackages (original) (raw)

Wolfgang Langner tds333+pydev at gmail.com
Wed Apr 26 21:57:45 CEST 2006


On 4/26/06, Guido van Rossum <guido at python.org> wrote:

So I have a very simple proposal: keep the init.py requirement for top-level pacakages, but drop it for subpackages. This should be a small change. I'm hesitant to propose anything new for Python 2.5, so I'm proposing it for 2.6; if Neal and Anthony think this would be okay to add to 2.5, they can do so.

-1 from me.

I had never a problem with init.py to mark a package or subpackage. Better add namespace.py to state a package dir as namespace package. And support multiple occurrences of "on_python_path/namespace_name/package".

-- bye by Wolfgang



More information about the Python-Dev mailing list