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/2001-October/018290.html below:

Import Modules from Zip Archives

[Python-Dev] PEP 273: Import Modules from Zip Archives [Python-Dev] PEP 273: Import Modules from Zip ArchivesSkip Montanaro skip@pobox.com (Skip Montanaro)
Wed, 31 Oct 2001 15:11:12 -0600
    >> Requirement: A ZIP archive be usable any version of Python that
    >> supports ZIP-based imports.

    Gordon> Hmm. You want .pyc's with every known magic number (there goes
    Gordon> disk space)? Or just source and throw away the .pyc?  Or maybe
    Gordon> insert into the zip file? Either way, there goes speed.

Can't zip files be treated conceptually as directories?  If I import a
py-based module from a zip archive I see no particular reason the
byte-compiled file can't be added to the archive (conceptually, written to
the directory), speeding up the import the next time.  Is this not possible?

Skip




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