Mercurial > cpython-lru_cache-weakref
diff Include/pythonrun.h @ 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 | cc05c2c8660e |
| children | 12753e7b15f7 |
line wrap: on
line diff
--- a/Include/pythonrun.h Mon Dec 30 22:04:23 2002 +0000 +++ b/Include/pythonrun.h Mon Dec 30 22:08:05 2002 +0000 @@ -99,6 +99,7 @@ PyAPI_FUNC(PyObject *) _PySys_Init(void); PyAPI_FUNC(void) _PyImport_Init(void); PyAPI_FUNC(void) _PyExc_Init(void); +PyAPI_FUNC(void) _PyImportHooks_Init(void); /* Various internal finalizers */ PyAPI_FUNC(void) _PyExc_Fini(void);
