]> granicus.if.org Git - python/commit
PEP 302 + zipimport:
authorJust van Rossum <just@letterror.com>
Mon, 30 Dec 2002 22:08:05 +0000 (22:08 +0000)
committerJust van Rossum <just@letterror.com>
Mon, 30 Dec 2002 22:08:05 +0000 (22:08 +0000)
commit52e14d640be3a7fa2c17f5a2a6bc9626d622aa40
tree417c361ba0bae8b22b262570769933ccdd5ad5e0
parent60087fb45092d9c199cea162e58d9193c7c1558c
PEP 302 + zipimport:
- new import hooks in import.c, exposed in the sys module
- new module called 'zipimport'
- various changes to allow bootstrapping from zip files

I hope I didn't break the Windows build (or anything else for that
matter), but then again, it's been sitting on sf long enough...

Regarding the latest discussions on python-dev: zipimport sets
pkg.__path__ as specified in PEP 273, and likewise, sys.path item such as
/path/to/Archive.zip/subdir/ are supported again.
13 files changed:
Include/pythonrun.h
Lib/site.py
Lib/test/test_importhooks.py [new file with mode: 0644]
Lib/test/test_zipimport.py [new file with mode: 0644]
Modules/Setup.dist
Modules/getpath.c
Modules/zipimport.c [new file with mode: 0644]
PC/config.c
PC/getpathp.c
PCbuild/pythoncore.dsp
Python/import.c
Python/importdl.h
Python/pythonrun.c