summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-12-30 22:59:32 (GMT)
committerGuido van Rossum <guido@python.org>2002-12-30 22:59:32 (GMT)
commita3b895323385762c3c1a0be65c1e752ddee069f6 (patch)
tree2068cbac4126cbbb9e4e2491a9167fa5c2bfd043 /Misc/NEWS
parentf271c272a2a98081b787dcd40a973b641fe14ca4 (diff)
downloadcpython-a3b895323385762c3c1a0be65c1e752ddee069f6.zip
cpython-a3b895323385762c3c1a0be65c1e752ddee069f6.tar.gz
cpython-a3b895323385762c3c1a0be65c1e752ddee069f6.tar.bz2
News about zipimport.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r--Misc/NEWS16
1 files changed, 16 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 9825532..5ee5c53 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -78,6 +78,19 @@ Type/class unification and new-style classes
Core and builtins
-----------------
+- 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
trace function to change which line will execute next. A command to
exploit this from pdb has been added. [SF patch #643835]
@@ -343,6 +356,9 @@ Core and builtins
Extension modules
-----------------
+- A module zipimport exists to support importing code from zip
+ archives.
+
- The new datetime module supplies classes for manipulating dates and
times. The basic design came from the Zope "fishbowl process", and
favors practical commercial applications over calendar esoterica. See