A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-December/030834.html below:

[Python-Dev] Another approach for the import mechanism

[Python-Dev] Another approach for the import mechanism [Python-Dev] Another approach for the import mechanismSamuele 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.




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4