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

Terry Reedy tjreedy at udel.edu
Wed Apr 26 23:23:12 CEST 2006


"Phillip J. Eby" <pje at telecommunity.com> wrote in message news:5.1.1.6.0.20060426164925.01e33228 at mail.telecommunity.com...

It might also be good to check that the directory actually contained python modules. This is a great idea, but might be hard to implement in practice with the current C implementation of import, at least for the general case.

Perhaps checking and autogeneration of init.py should better be part of a Python-aware editor/IDE. A File menu could have a New Package entry to create a directory + empty init.py.

Terry Jan Reedy



More information about the Python-Dev mailing list