Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9cfb17 commit 002f7aaCopy full SHA for 002f7aa
1 file changed
Doc/tut/tut.tex
@@ -1909,6 +1909,13 @@ \subsection{``Compiled'' Python files}
1909
file; the only thing that's faster about \file{.pyc} or \file{.pyo}
1910
files is the speed with which they are loaded.
1911
1912
+\item
1913
+When a script is run by giving its name on the command line, the
1914
+bytecode for the script is never written to a \file{.pyc} or
1915
+\file{.pyo} file. Thus, the startup time of a script may be reduced
1916
+by moving most of its code to a module and having a small bootstrap
1917
+script that imports that module.
1918
+
1919
\item
1920
It is possible to have a file called \file{spam.pyc} (or
1921
\file{spam.pyo} when \code{-O} is used) without a module
0 commit comments