mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
This is my patch
[ 587993 ] SET_LINENO killer Remove SET_LINENO. Tracing is now supported by inspecting co_lnotab. Many sundry changes to document and adapt to this change.
This commit is contained in:
parent
add88060c1
commit
dd32a91cc0
19 changed files with 341 additions and 187 deletions
|
@ -2340,12 +2340,11 @@ Some tips for experts:
|
|||
|
||||
\item
|
||||
When the Python interpreter is invoked with the \programopt{-O} flag,
|
||||
optimized code is generated and stored in \file{.pyo} files.
|
||||
The optimizer currently doesn't help much; it only removes
|
||||
\keyword{assert} statements and \code{SET_LINENO} instructions.
|
||||
When \programopt{-O} is used, \emph{all} bytecode is optimized;
|
||||
\code{.pyc} files are ignored and \code{.py} files are compiled to
|
||||
optimized bytecode.
|
||||
optimized code is generated and stored in \file{.pyo} files. The
|
||||
optimizer currently doesn't help much; it only removes
|
||||
\keyword{assert} statements. When \programopt{-O} is used, \emph{all}
|
||||
bytecode is optimized; \code{.pyc} files are ignored and \code{.py}
|
||||
files are compiled to optimized bytecode.
|
||||
|
||||
\item
|
||||
Passing two \programopt{-O} flags to the Python interpreter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue