[Python-checkins] python/dist/src/Misc NEWS,1.579,1.580
jvr@users.sourceforge.net
jvr@users.sourceforge.net
Tue, 31 Dec 2002 02:22:41 -0800
Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv15853/Misc
Modified Files:
NEWS
Log Message:
Broke the zipimport/PEP 302 news item into two separate items.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.579
retrieving revision 1.580
diff -C2 -d -r1.579 -r1.580
*** NEWS 31 Dec 2002 02:12:42 -0000 1.579
--- NEWS 31 Dec 2002 10:22:38 -0000 1.580
***************
*** 80,94 ****
- Import from zipfiles is now supported. The name of a zipfile placed
! on sys.path causes the import statement to look for importable
! Python modules (with .py, pyc and .pyo extensions) and packages
! inside the zipfile. To support this, several new variables have
! been added to the sys module: sys.meta_path, sys.path_hooks, and
! sys.path_importer_cache; these make extending the import statement
! much more convenient than overriding the __import__ built-in
! function. For a description of these, see PEP 302. The zipfile
! import follows the specification (though not the sample
! implementation) of PEP 273. The semantics of __path__ are
compatible with those that have been implemented in Jython since
Jython 2.1.
- A frame object's f_lineno attribute can now be written to from a
--- 80,97 ----
- Import from zipfiles is now supported. The name of a zipfile placed
! on sys.path causes the import statement to look for importable Python
! modules (with .py, pyc and .pyo extensions) and packages inside the
! zipfile. The zipfile import follows the specification (though not
! the sample implementation) of PEP 273. The semantics of __path__ are
compatible with those that have been implemented in Jython since
Jython 2.1.
+
+ - PEP 302 has been accepted. Although it was inititally developed to
+ support zipimport, it offers a new, general import hook mechanism.
+ Several new variables have been added to the sys module:
+ sys.meta_path, sys.path_hooks, and sys.path_importer_cache; these
+ make extending the import statement much more convenient than
+ overriding the __import__ built-in function. For a description of
+ these, see PEP 302.
- A frame object's f_lineno attribute can now be written to from a