summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2006-03-17 21:48:46 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2006-03-17 21:48:46 (GMT)
commitb182db44f2bc944cd1ad629664f8882f8453a595 (patch)
tree7f37a0f038633a93aacb6afe9b6d7c5d97b994fa /Doc
parentbc45a3f8210213986e12dfecd7c12b8a45b4f16b (diff)
downloadcpython-b182db44f2bc944cd1ad629664f8882f8453a595.zip
cpython-b182db44f2bc944cd1ad629664f8882f8453a595.tar.gz
cpython-b182db44f2bc944cd1ad629664f8882f8453a595.tar.bz2
Write section
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/whatsnew25.tex20
1 files changed, 19 insertions, 1 deletions
diff --git a/Doc/whatsnew/whatsnew25.tex b/Doc/whatsnew/whatsnew25.tex
index 80917b1..0da9b5a 100644
--- a/Doc/whatsnew/whatsnew25.tex
+++ b/Doc/whatsnew/whatsnew25.tex
@@ -212,7 +212,25 @@ implemented by Richard Jones and Fred Drake.}
%======================================================================
\section{PEP 338: Executing Modules as Scripts}
-% XXX write this
+The \programopt{-m} switch added in Python 2.4 to execute a module as
+a script gained a few more abilities. Instead of being implemented in
+C code inside the Python interpreter, the switch now uses an
+implementation in a new module, \module{runpy}.
+
+The \module{runpy} module implements a more sophisticated import
+mechanism so that it's now possible to run modules in a package such
+as \module{pychecker.checker}. The module also supports alternative
+import mechanisms such as the \module{zipimport} module. (This means
+you can add a .zip archive's path to \code{sys.path} and then use the
+\programopt{-m} switch to execute code from the archive.
+
+
+\begin{seealso}
+
+\seepep{338}{Executing modules as scripts}{PEP written and
+implemented by Nick Coghlan.}
+
+\end{seealso}
%======================================================================