[Python-Dev] zipimport._zip_directory_cache interface (original) (raw)
Maciej Fijalkowski fijall at gmail.com
Mon May 26 19:46:41 CEST 2008
- Previous message: [Python-Dev] itertools additions: one(), single_valued()
- Next message: [Python-Dev] zipimport._zip_directory_cache interface
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
_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
- Previous message: [Python-Dev] itertools additions: one(), single_valued()
- Next message: [Python-Dev] zipimport._zip_directory_cache interface
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]