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/018283.html below:

Import Modules from Zip Archives

[Python-Dev] PEP 273: Import Modules from Zip Archives [Python-Dev] PEP 273: Import Modules from Zip ArchivesGreg Ward gward@python.net
Wed, 31 Oct 2001 14:14:10 -0500
On 31 October 2001, James C. Ahlstrom said:
> Did we decide to allow import of *.py?

Here's an idea that would apply to importing *.py whether inside ZIP
files or not: if unable to write the .pyc, write a warning to stderr.
That'll be useful to people who inadvertently put .py files without .pyc
in a ZIP file, and to people who try to import .py files from a
directory they can't write to, etc.  Now that Python has a warning
framework, warnings like
  unable to write /usr/lib/python2.2/site-packages/foo.pyc: permission denied
or
  unable to write /usr/lib/python2.2/site-packages/foo.zip/foo.pyc:
    can't write to ZIP file

sound like useful warnings.

        Greg
-- 
Greg Ward - programmer-at-large                         gward@python.net
http://starship.python.net/~gward/
Save energy: be apathetic.



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