summaryrefslogtreecommitdiffstats
path: root/Doc/tut
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-06-28 19:16:38 (GMT)
committerGuido van Rossum <guido@python.org>1998-06-28 19:16:38 (GMT)
commit002f7aae083b187a850818eac9045a3756b2a326 (patch)
tree1e47d2a920fb4dddc55482161fe13711bcb4998a /Doc/tut
parentf9cfb173cded50ac6cd0fdff3d10c6692063920e (diff)
downloadcpython-002f7aae083b187a850818eac9045a3756b2a326.zip
cpython-002f7aae083b187a850818eac9045a3756b2a326.tar.gz
cpython-002f7aae083b187a850818eac9045a3756b2a326.tar.bz2
Note that no .pyc/.pyo files are created for script files.
Diffstat (limited to 'Doc/tut')
-rw-r--r--Doc/tut/tut.tex7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex
index a13c939..4d9bf71 100644
--- a/Doc/tut/tut.tex
+++ b/Doc/tut/tut.tex
@@ -1910,6 +1910,13 @@ file; the only thing that's faster about \file{.pyc} or \file{.pyo}
files is the speed with which they are loaded.
\item
+When a script is run by giving its name on the command line, the
+bytecode for the script is never written to a \file{.pyc} or
+\file{.pyo} file. Thus, the startup time of a script may be reduced
+by moving most of its code to a module and having a small bootstrap
+script that imports that module.
+
+\item
It is possible to have a file called \file{spam.pyc} (or
\file{spam.pyo} when \code{-O} is used) without a module
\file{spam.py} in the same module. This can be used to distribute