Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(169176)

Side by Side Diff: Doc/using/cmdline.rst

Issue 11681: -b option undocumented
Patch Set: Created 2 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Modules/main.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 .. highlightlang:: sh 1 .. highlightlang:: sh
2 2
3 .. ATTENTION: You probably should update Misc/python.man, too, if you modify 3 .. ATTENTION: You probably should update Misc/python.man, too, if you modify
4 this file. 4 this file.
5 5
6 .. _using-on-general: 6 .. _using-on-general:
7 7
8 Command line and environment 8 Command line and environment
9 ============================ 9 ============================
10 10
11 The CPython interpreter scans the command line and the environment for various 11 The CPython interpreter scans the command line and the environment for various
12 settings. 12 settings.
13 13
14 .. impl-detail:: 14 .. impl-detail::
15 15
16 Other implementations' command line schemes may differ. See 16 Other implementations' command line schemes may differ. See
17 :ref:`implementations` for further resources. 17 :ref:`implementations` for further resources.
18 18
19 19
20 .. _using-on-cmdline: 20 .. _using-on-cmdline:
21 21
22 Command line 22 Command line
23 ------------ 23 ------------
24 24
25 When invoking Python, you may specify any of these options:: 25 When invoking Python, you may specify any of these options::
26 26
27 python [-BdEiOQsRStuUvVWxX3?] [-c command | -m module-name | script | - ] [a rgs] 27 python [-bBdEiOQsRStuUvVWxX3?] [-c command | -m module-name | script | - ] [ args]
28 28
29 The most common use case is, of course, a simple invocation of a script:: 29 The most common use case is, of course, a simple invocation of a script::
30 30
31 python myscript.py 31 python myscript.py
32 32
33 33
34 .. _using-on-interface-options: 34 .. _using-on-interface-options:
35 35
36 Interface options 36 Interface options
37 ~~~~~~~~~~~~~~~~~ 37 ~~~~~~~~~~~~~~~~~
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 Print the Python version number and exit. Example output could be:: 183 Print the Python version number and exit. Example output could be::
184 184
185 Python 2.5.1 185 Python 2.5.1
186 186
187 .. versionchanged:: 2.5 187 .. versionchanged:: 2.5
188 The ``--version`` variant. 188 The ``--version`` variant.
189 189
190 190
191 Miscellaneous options 191 Miscellaneous options
192 ~~~~~~~~~~~~~~~~~~~~~ 192 ~~~~~~~~~~~~~~~~~~~~~
193
194 .. cmdoption:: -b
195
196 Issue a warning when comparing :class:`bytes` with :class:`bytearray`.
Nick Coghlan 2017/01/12 04:24:40 For 2.x, :class:`unicode` is the relevant cross-re
197 Issue an error when the option is given twice (:option:`!-bb`).
198
199 .. versionchanged:: 3.5
Nick Coghlan 2017/01/12 04:24:40 3.x versionchanged notes are left out of the 2.x d
200 Affects comparisons of :class:`bytes` with :class:`int`.
193 201
194 .. cmdoption:: -B 202 .. cmdoption:: -B
195 203
196 If given, Python won't try to write ``.pyc`` or ``.pyo`` files on the 204 If given, Python won't try to write ``.pyc`` or ``.pyo`` files on the
197 import of source modules. See also :envvar:`PYTHONDONTWRITEBYTECODE`. 205 import of source modules. See also :envvar:`PYTHONDONTWRITEBYTECODE`.
198 206
199 .. versionadded:: 2.6 207 .. versionadded:: 2.6
200 208
201 209
202 .. cmdoption:: -d 210 .. cmdoption:: -d
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 .. envvar:: PYTHONDUMPREFS 649 .. envvar:: PYTHONDUMPREFS
642 650
643 If set, Python will dump objects and reference counts still alive after 651 If set, Python will dump objects and reference counts still alive after
644 shutting down the interpreter. 652 shutting down the interpreter.
645 653
646 654
647 .. envvar:: PYTHONMALLOCSTATS 655 .. envvar:: PYTHONMALLOCSTATS
648 656
649 If set, Python will print memory allocation statistics every time a new 657 If set, Python will print memory allocation statistics every time a new
650 object arena is created, and on shutdown. 658 object arena is created, and on shutdown.
OLDNEW
« no previous file with comments | « no previous file | Modules/main.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+