[Patches] [ python-Patches-483466 ] Import from Zip Archive

noreply@sourceforge.net noreply@sourceforge.net
Mon, 19 Nov 2001 07:46:52 -0800


Patches item #483466, was opened at 2001-11-19 07:46
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=483466&group_id=5470

Category: Core (C code)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: James C. Ahlstrom (ahlstromjc)
Assigned to: Nobody/Anonymous (nobody)
Summary: Import from Zip Archive

Initial Comment:
This is the "final" patch to import.c to support
imports from zip archives and directory caching
using os.listdir().  It replaces patch 476047.  It
it intended to be part of Python 2.3.  There are
five files requiring patches, and these are in
context diff's in five separate attached files.

I have tested this on Linux and Windows 2000.  It
needs testing on bigendian machines, and those with
64-bit integers.  Please complain about bugs, but let
me know if you plan to change the code.

The documentation for the imp module needs a patch.
This is added right after "PY_FROZEN":

PY_ZIPFILE
  The module was found in a zip archive file.

BUGS
====
There are a couple of bugs I wasn't sure were worth
fixing.  Please complain if these are a problem:

The use of os.listdir() for normal directory imports
makes case_ok() unnecessary, but it was not removed.
It might be needed if os.listdir() is missing.

There is no problem if os.listdir() doesn't exist,
but if it exists, it must perform as documented,
and must return both file and directory names in their
correct case.

The PYTHONCASEOK flag is ineffective.  This is a
consequence of dictionary name lookup.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=483466&group_id=5470