Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
002f7aae
Commit
002f7aae
authored
Jun 28, 1998
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Note that no .pyc/.pyo files are created for script files.
parent
f9cfb173
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
Doc/tut/tut.tex
Doc/tut/tut.tex
+7
-0
No files found.
Doc/tut/tut.tex
View file @
002f7aae
...
...
@@ -1909,6 +1909,13 @@ A program doesn't run any faster when it is read from a
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment