[Python-checkins] python/dist/src/Include pythonrun.h,2.56,2.57

jvr@users.sourceforge.net jvr@users.sourceforge.net
2002年12月30日 14:08:34 -0800


Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1:/tmp/cvs-serv32400/Include
Modified Files:
	pythonrun.h 
Log Message:
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.
Index: pythonrun.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pythonrun.h,v
retrieving revision 2.56
retrieving revision 2.57
diff -C2 -d -r2.56 -r2.57
*** pythonrun.h	11 Dec 2002 14:04:58 -0000	2.56
--- pythonrun.h	30 Dec 2002 22:08:02 -0000	2.57
***************
*** 100,103 ****
--- 100,104 ----
 PyAPI_FUNC(void) _PyImport_Init(void);
 PyAPI_FUNC(void) _PyExc_Init(void);
+ PyAPI_FUNC(void) _PyImportHooks_Init(void);
 
 /* Various internal finalizers */

AltStyle によって変換されたページ (->オリジナル) /