[Python-Dev] Another approach for the import mechanism

Samuele Pedroni pedronis@bluewin.ch
Thu, 5 Dec 2002 22:54:11 +0100


From: "Gustavo Niemeyer" <niemeyer@conectiva.com>
> Having one of:
>
> /some/dir/httplib/__init__.zip
> /some/dir/httplib.zip
>
> You'd do:
>
> sys.path.insert(0, "/some/dir")
>

it's confusing (and imcompatible wrt to how Java/Jython do things now).

__init__.py exists so that a package has a first-class counterpart, namely a
first class-module.

Zipfiles should be able to embrace more than just one package and should be
transparent.