Message191546
Here is an initial stab at a zip file importer using importlib. Probably the biggest shortcoming is that it doesn't support bytecode files, but that's because I just have not bothered to add support yet (it's just one method to implement). There is a note in zipimport that the resolution does not match up between zip file modification times and what bytecode files store and so there needs to be a one second fuzzing factor but I'm not seeing why based on the fact that os.stat().st_mtime is used by bytecode files which has a one second resolution already like zip files. The other shortcoming is bytecode-only files are not supported (on purpose as importlib.abc.SourceLoader doesn't support bytecode-only files). |
|
Date |
User |
Action |
Args |
2013-06-21 01:09:32 | brett.cannon | set | recipients:
+ brett.cannon, barry, rhettinger, jcea, eric.smith, pconnell, dmi.baranov |
2013-06-21 01:09:32 | brett.cannon | set | messageid: <1371776972.22.0.218148643337.issue17630@psf.upfronthosting.co.za> |
2013-06-21 01:09:32 | brett.cannon | link | issue17630 messages |
2013-06-21 01:09:29 | brett.cannon | create | |
|