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
f6c6d1e2
Kaydet (Commit)
f6c6d1e2
authored
May 13, 2017
tarafından
Zachary Ware
Kaydeden (comit)
GitHub
May 13, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-11681: Document the `-b` and `-bb` options (GH-1562)
üst
4be66b6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
cmdline.rst
Doc/using/cmdline.rst
+14
-1
main.c
Modules/main.c
+2
-0
No files found.
Doc/using/cmdline.rst
Dosyayı görüntüle @
f6c6d1e2
...
@@ -24,7 +24,7 @@ Command line
...
@@ -24,7 +24,7 @@ Command line
When invoking Python, you may specify any of these options::
When invoking Python, you may specify any of these options::
python [-BdEiOQsRStuUvVWxX3?] [-c command | -m module-name | script | - ] [args]
python [-
b
BdEiOQsRStuUvVWxX3?] [-c command | -m module-name | script | - ] [args]
The most common use case is, of course, a simple invocation of a script::
The most common use case is, of course, a simple invocation of a script::
...
@@ -191,6 +191,19 @@ Generic options
...
@@ -191,6 +191,19 @@ Generic options
Miscellaneous options
Miscellaneous options
~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~
.. cmdoption:: -b
Issue a warning when comparing :class:`unicode` with :class:`bytearray`.
Issue an error when the option is given twice (:option:`!-bb`).
Note that, unlike the corresponding Python 3.x flag, this will **not** emit
warnings for comparisons between :class:`str` and :class:`unicode`.
Instead, the ``str`` instance will be implicitly decoded to ``unicode`` and
Unicode comparison used.
.. versionadded:: 2.6
.. cmdoption:: -B
.. cmdoption:: -B
If given, Python won't try to write ``.pyc`` or ``.pyo`` files on the
If given, Python won't try to write ``.pyc`` or ``.pyo`` files on the
...
...
Modules/main.c
Dosyayı görüntüle @
f6c6d1e2
...
@@ -62,6 +62,8 @@ static char *usage_line =
...
@@ -62,6 +62,8 @@ static char *usage_line =
/* Long usage message, split into parts < 512 bytes */
/* Long usage message, split into parts < 512 bytes */
static
char
*
usage_1
=
"\
static
char
*
usage_1
=
"\
Options and arguments (and corresponding environment variables):
\n
\
Options and arguments (and corresponding environment variables):
\n
\
-b : issue warnings about comparing bytearray with unicode
\n
\
(-bb: issue errors)
\n
\
-B : don't write .py[co] files on import; also PYTHONDONTWRITEBYTECODE=x
\n
\
-B : don't write .py[co] files on import; also PYTHONDONTWRITEBYTECODE=x
\n
\
-c cmd : program passed in as string (terminates option list)
\n
\
-c cmd : program passed in as string (terminates option list)
\n
\
-d : debug output from parser; also PYTHONDEBUG=x
\n
\
-d : debug output from parser; also PYTHONDEBUG=x
\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