[Python-Dev] zipimport & import hooks
Fredrik Lundh
fredrik@pythonware.com
Fri, 6 Dec 2002 15:42:25 +0100
Martin wrote:
> There is a magic, in import.c, which, when an import statement is
> executed, looks for sys.path entries ending in .zip, and silently
> replaces them with zipimport objects. No such magic is available for =
any
> other form of sys.path entries.
note that there's nothing that prevent anyone from adding hooks
for this in a later stage.
(on the other hand, does anyone seriously believe that many people
will use tar-based formats to store code packages? and everyone
who think there's such a thing as a transparent network transport
should check out http://www.bricklin.com/chiapaint.htm ;-)
</F>