[Python-Dev] zipimport._zip_directory_cache interface

Maciej Fijalkowski fijall at gmail.com
Mon May 26 19:46:41 CEST 2008


_zip_directory_cache 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 _zip_directory_cache 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?

Cheers,
fijal


More information about the Python-Dev mailing list