Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
6b86a42c
Kaydet (Commit)
6b86a42c
authored
Ock 28, 1999
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document -OO; "unsafe" optimization that removes docstrings.
Marc-Andre Lemburg.
üst
bf07b29c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
tut.tex
Doc/tut/tut.tex
+9
-0
main.c
Modules/main.c
+2
-1
No files found.
Doc/tut/tut.tex
Dosyayı görüntüle @
6b86a42c
...
...
@@ -1925,6 +1925,15 @@ When \code{-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
\code
{
-O
}
flags to the Python interpreter (
\code
{
-OO
}
)
will cause the bytecode compiler to perform optimizations that could
in some rare cases result in malfunctioning programs. Currently only
\code
{__
doc
__}
strings are removed from the bytecode, resulting in more
compact
\file
{
.pyo
}
files. Since some programs may rely on having
these available, you should only use this option if you know what
you're doing.
\item
A program doesn't run any faster when it is read from a
\file
{
.pyc
}
or
\file
{
.pyo
}
file than when it is read from a
\file
{
.py
}
...
...
Modules/main.c
Dosyayı görüntüle @
6b86a42c
...
...
@@ -60,7 +60,7 @@ static int orig_argc;
/* Short usage message (with %s for argv0) */
static
char
*
usage_line
=
"usage: %s [
-d] [-i] [-O] [-S] [-u] [-v] [-x] [-X]
[-c cmd | file | -] [arg] ...
\n
"
;
"usage: %s [
option] ...
[-c cmd | file | -] [arg] ...
\n
"
;
/* Long usage message, split into parts < 512 bytes */
static
char
*
usage_top
=
"\
...
...
@@ -69,6 +69,7 @@ Options and arguments (and corresponding environment variables):\n\
-i : inspect interactively after running script, (also PYTHONINSPECT=x)
\n
\
and force prompts, even if stdin does not appear to be a terminal
\n
\
-O : optimize generated bytecode (a tad; also PYTHONOPTIMIZE=x)
\n
\
-OO : remove doc-strings in addition to the -O optimizations
\n
\
-S : don't imply 'import site' on initialization
\n
\
-t : issue warnings about inconsistent tab usage (-tt: issue errors)
\n
\
"
;
...
...
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