[Python-Dev] zipimport._zip_directory_cache interface (original) (raw)
Brett Cannon brett at python.org
Mon May 26 20:49:11 CEST 2008
- Previous message: [Python-Dev] zipimport._zip_directory_cache interface
- Next message: [Python-Dev] ABC issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, May 26, 2008 at 10:46 AM, Maciej Fijalkowski <fijall at gmail.com> wrote:
zipdirectorycache is a cache for modules imported by zipimporter. It's a normal dictionary exposing gory details of zipimport implementation. It wouldn't be a bad thing on it's own, but pkgutil.py uses this knowledge, while zipdirectorycache has no single test nor documentation (besides info in docstring). It's a bit of a pain to actually implement this in other python implementations (especially that cache can be internal and exposed differently). I think it should be either specified better (and stripped from ) or zipimport should expose some nicer interface to it's cache. What do you think?
How useful is the cache access? If it is not necessary, I think pkgutil just needs to stop using it.
If it is useful to access, the question becomes who exposes the cache; the module, the importers, or the loaders?
-Brett
- Previous message: [Python-Dev] zipimport._zip_directory_cache interface
- Next message: [Python-Dev] ABC issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]