Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 26885:54aacb87beda legacy-trunk
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.
| author | Just van Rossum <just@letterror.com> |
|---|---|
| date | Mon, 30 Dec 2002 22:08:05 +0000 |
| parents | 02ba4663cad2 |
| children | 12753e7b15f7 |
comparison
equal
deleted
inserted
replaced
| 26884:f0f9acca4164 | 26885:54aacb87beda |
|---|---|
| 158 _PyExc_Init(); | 158 _PyExc_Init(); |
| 159 _PyImport_FixupExtension("exceptions", "exceptions"); | 159 _PyImport_FixupExtension("exceptions", "exceptions"); |
| 160 | 160 |
| 161 /* phase 2 of builtins */ | 161 /* phase 2 of builtins */ |
| 162 _PyImport_FixupExtension("__builtin__", "__builtin__"); | 162 _PyImport_FixupExtension("__builtin__", "__builtin__"); |
| 163 | |
| 164 _PyImportHooks_Init(); | |
| 163 | 165 |
| 164 initsigs(); /* Signal handling stuff, including initintr() */ | 166 initsigs(); /* Signal handling stuff, including initintr() */ |
| 165 | 167 |
| 166 initmain(); /* Module __main__ */ | 168 initmain(); /* Module __main__ */ |
| 167 if (!Py_NoSiteFlag) | 169 if (!Py_NoSiteFlag) |
