Moore, Paul wrote: > Perhaps you could refactor your implementation so that the > cache isn't just for zipfiles? (I can easily imagine other > extensions that would benefit - tarfiles, metakit databases, > imports over the web, ...) The directory listing is the hardest part and can't be general; caching is as simple as using a dict. I think it's the responsibility of the import hook. Btw. I could provide a zip import hook that's not specific to one archive, but rather searches sys.path for zip files. I'll play with that. Just
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