@@ -80,7 +80,7 @@ python \- an interpreted, interactive, object-oriented programming language
80
80
]
81
81
.br
82
82
[
83
- .B \- -check-hash-based-pycs
83
+ .B \-\ - check-hash-based-pycs
84
84
.I default
85
85
|
86
86
.I always
@@ -89,16 +89,16 @@ python \- an interpreted, interactive, object-oriented programming language
89
89
]
90
90
.br
91
91
[
92
- .B \- -help
92
+ .B \-\ - help
93
93
]
94
94
[
95
- .B \- -help-env
95
+ .B \-\ - help\ - env
96
96
]
97
97
[
98
- .B \- -help-xoptions
98
+ .B \-\ - help\ - xoptions
99
99
]
100
100
[
101
- .B \- -help-all
101
+ .B \-\ - help\ - all
102
102
]
103
103
.br
104
104
[
@@ -144,14 +144,14 @@ files on import. See also PYTHONDONTWRITEBYTECODE.
144
144
.TP
145
145
.B \- b
146
146
Issue warnings about str(bytes_instance), str(bytearray_instance)
147
- and comparing bytes/bytearray with str. (-bb: issue errors)
147
+ and comparing bytes/bytearray with str. (\ - bb: issue errors)
148
148
.TP
149
149
.BI " \- c " command
150
150
Specify the command to execute (see next section).
151
151
This terminates the option list (following options are passed as
152
152
arguments to the command).
153
153
.TP
154
- .BI " \-\- check-hash-based-pycs " mode
154
+ .BI " \-\- check\ - hash\ - based\ - pycs " mode
155
155
Configure how Python evaluates the up-to-dateness of hash-based .pyc files.
156
156
.TP
157
157
.B \- d
@@ -185,7 +185,7 @@ raises an exception.
185
185
.B \- I
186
186
Run Python in isolated mode. This also implies \fB \- E \fP , \fB \- P \fP and \fB \- s \fP . In
187
187
isolated mode sys.path contains neither the script's directory nor the user's
188
- site-packages directory. All PYTHON* environment variables are ignored, too.
188
+ site\ - packages directory. All PYTHON* environment variables are ignored, too.
189
189
Further restrictions may be imposed to prevent the user from injecting
190
190
malicious code.
191
191
.TP
@@ -203,7 +203,7 @@ __debug__; augment the filename for compiled (bytecode) files by
203
203
adding .opt-1 before the .pyc extension.
204
204
.TP
205
205
.B \- OO
206
- Do \fB -O \fP and also discard docstrings; change the filename for
206
+ Do \fB \ -O \fP and also discard docstrings; change the filename for
207
207
compiled (bytecode) files by adding .opt-2 before the .pyc extension.
208
208
.TP
209
209
.B \- P
@@ -266,16 +266,16 @@ emitted by a process (even those that are otherwise ignored by default):
266
266
267
267
The action names can be abbreviated as desired and the interpreter will resolve
268
268
them to the appropriate action name. For example,
269
- .B -Wi
269
+ .B \ - Wi
270
270
is the same as
271
- .B -Wignore .
271
+ .B \ -Wignore .
272
272
273
273
The full form of argument is:
274
274
.IB action:message:category:module:lineno
275
275
276
276
Empty fields match all values; trailing empty fields may be omitted. For
277
277
example
278
- .B -W ignore::DeprecationWarning
278
+ .B \ -W ignore::DeprecationWarning
279
279
ignores all DeprecationWarning warnings.
280
280
281
281
The
@@ -304,10 +304,10 @@ field matches the line number, where zero matches all line numbers and is thus
304
304
equivalent to an omitted line number.
305
305
306
306
Multiple
307
- .B -W
307
+ .B \ - W
308
308
options can be given; when a warning matches more than one option, the action
309
309
for the last matching option is performed. Invalid
310
- .B -W
310
+ .B \ - W
311
311
options are ignored (though, a warning message is printed about invalid options
312
312
when the first warning is issued).
313
313
@@ -321,15 +321,15 @@ a regular expression on the warning message.
321
321
.BI " \- X " option
322
322
Set implementation-specific option. The following options are available:
323
323
324
- \fB -X cpu_count= \fI N \fR : override the return value of \fI os.cpu_count() \fR ;
325
- \fB -X cpu_count=default \fR cancels overriding; also \fB PYTHON_CPU_COUNT \fI
324
+ \fB \ -X cpu_count= \fI N \fR : override the return value of \fI os.cpu_count() \fR ;
325
+ \fB \ -X cpu_count=default \fR cancels overriding; also \fB PYTHON_CPU_COUNT \fI
326
326
327
- \fB -X dev \fR : enable CPython's "development mode", introducing additional
327
+ \fB \ -X dev \fR : enable CPython's "development mode", introducing additional
328
328
runtime checks which are too expensive to be enabled by default. It
329
329
will not be more verbose than the default if the code is correct: new
330
330
warnings are only emitted when an issue is detected. Effect of the
331
331
developer mode:
332
- * Add default warning filter, as \fB -W default \fR
332
+ * Add default warning filter, as \fB \ -W default \fR
333
333
* Install debug hooks on memory allocators: see the
334
334
PyMem_SetupDebugHooks() C function
335
335
* Enable the faulthandler module to dump the Python traceback on a
@@ -338,59 +338,59 @@ Set implementation-specific option. The following options are available:
338
338
* Set the dev_mode attribute of sys.flags to True
339
339
* io.IOBase destructor logs close() exceptions
340
340
341
- \fB -X importtime \fR : show how long each import takes. It shows module name,
341
+ \fB \ -X importtime \fR : show how long each import takes. It shows module name,
342
342
cumulative time (including nested imports) and self time (excluding
343
343
nested imports). Note that its output may be broken in multi-threaded
344
344
application. Typical usage is
345
- \fB python3 -X importtime -c 'import asyncio' \fR
345
+ \fB python3 \ -X importtime \ -c 'import asyncio' \fR
346
346
347
- \fB -X faulthandler \fR : enable faulthandler
347
+ \fB \ -X faulthandler \fR : enable faulthandler
348
348
349
- \fB -X frozen_modules= \fR [\fB on \fR |\fB off \fR ]: whether or not frozen modules
349
+ \fB \ -X frozen_modules= \fR [\fB on \fR |\fB off \fR ]: whether or not frozen modules
350
350
should be used.
351
351
The default is "on" (or "off" if you are running a local build).
352
352
353
- \fB -X gil= \fR [\fB 0 \fR |\fB 1 \fR ]: enable (1) or disable (0) the GIL; also
353
+ \fB \ -X gil= \fR [\fB 0 \fR |\fB 1 \fR ]: enable (1) or disable (0) the GIL; also
354
354
\fB PYTHON_GIL \fR
355
- Only available in builds configured with \fB - -disable-gil\fR .
355
+ Only available in builds configured with \fB \-\ -disable \ -gil \fR .
356
356
357
- \fB -X int_max_str_digits= \fI number \fR : limit the size of int<->str conversions.
357
+ \fB \ -X int_max_str_digits= \fI number \fR : limit the size of int<->str conversions.
358
358
This helps avoid denial of service attacks when parsing untrusted data.
359
359
The default is sys.int_info.default_max_str_digits. 0 disables.
360
360
361
- \fB -X no_debug_ranges \fR : disable the inclusion of the tables mapping extra
361
+ \fB \ -X no_debug_ranges \fR : disable the inclusion of the tables mapping extra
362
362
location information (end line, start column offset and end column
363
363
offset) to every instruction in code objects. This is useful when
364
364
smaller code objects and pyc files are desired as well as suppressing
365
365
the extra visual location indicators when the interpreter displays
366
366
tracebacks.
367
367
368
- \fB -X perf \fR : support the Linux "perf" profiler; also \fB PYTHONPERFSUPPORT=1 \fR
368
+ \fB \ -X perf \fR : support the Linux "perf" profiler; also \fB PYTHONPERFSUPPORT=1 \fR
369
369
370
- \fB -X perf_jit \fR : support the Linux "perf" profiler with DWARF support;
370
+ \fB \ -X perf_jit \fR : support the Linux "perf" profiler with DWARF support;
371
371
also \fB PYTHON_PERF_JIT_SUPPORT=1 \fR
372
372
373
- \fB -X presite= \fI MOD \fR : import this module before site; also \fB PYTHON_PRESITE \fR
373
+ \fB \ -X presite= \fI MOD \fR : import this module before site; also \fB PYTHON_PRESITE \fR
374
374
This only works on debug builds.
375
375
376
- \fB -X pycache_prefix= \fI PATH \fR : enable writing .pyc files to a parallel
376
+ \fB \ -X pycache_prefix= \fI PATH \fR : enable writing .pyc files to a parallel
377
377
tree rooted at the given directory instead of to the code tree.
378
378
379
- \fB -X showrefcount \fR : output the total reference count and number of used
379
+ \fB \ -X showrefcount \fR : output the total reference count and number of used
380
380
memory blocks when the program finishes or after each statement in the
381
381
interactive interpreter. This only works on debug builds
382
382
383
- \fB -X tracemalloc \fR : start tracing Python memory allocations using the
383
+ \fB \ -X tracemalloc \fR : start tracing Python memory allocations using the
384
384
tracemalloc module. By default, only the most recent frame is stored in a
385
- traceback of a trace. Use -X tracemalloc=NFRAME to start tracing with a
385
+ traceback of a trace. Use \ - X tracemalloc=NFRAME to start tracing with a
386
386
traceback limit of NFRAME frames
387
387
388
- \fB -X utf8 \fR : enable UTF-8 mode for operating system interfaces,
389
- overriding the default locale-aware mode. \fB -X utf8=0 \fR explicitly
388
+ \fB \ -X utf8 \fR : enable UTF-8 mode for operating system interfaces,
389
+ overriding the default locale-aware mode. \fB \ -X utf8=0 \fR explicitly
390
390
disables UTF-8 mode (even when it would otherwise activate
391
391
automatically). See \fB PYTHONUTF8 \fR for more details
392
392
393
- \fB -X warn_default_encoding \fR : enable opt-in EncodingWarning for 'encoding=None'
393
+ \fB \ -X warn_default_encoding \fR : enable opt-in EncodingWarning for 'encoding=None'
394
394
395
395
.TP
396
396
.B \- x
@@ -430,7 +430,7 @@ is an empty string; if
430
430
is used,
431
431
.I sys.argv[0]
432
432
contains the string
433
- .I '-c'.
433
+ .I '\ - c'.
434
434
Note that options interpreted by the Python interpreter itself
435
435
are not placed in
436
436
.IR sys.argv .
@@ -513,7 +513,7 @@ If this environment variable is set to a non-empty string,
513
513
is called at startup: install a handler for SIGSEGV, SIGFPE, SIGABRT, SIGBUS
514
514
and SIGILL signals to dump the Python traceback.
515
515
.IP
516
- This is equivalent to the \fB -X faulthandler \fP option.
516
+ This is equivalent to the \fB \ -X faulthandler \fP option.
517
517
.IP PYTHON_FROZEN_MODULES
518
518
If this variable is set to \fB on \fR or \fB off \fR , it determines whether or not
519
519
frozen modules are ignored by the import machinery. A value of \fB on \fR means
@@ -524,12 +524,12 @@ See also the \fB\-X frozen_modules\fR option.
524
524
.IP PYTHON_GIL
525
525
If this variable is set to 1, the global interpreter lock (GIL) will be forced
526
526
on. Setting it to 0 forces the GIL off. Only available in builds configured
527
- with \fB - -disable-gil\fP .
527
+ with \fB \-\ -disable \ -gil \fP .
528
528
.IP PYTHON_HISTORY
529
529
This environment variable can be used to set the location of a history file
530
530
(on Unix, it is \fI ~/.python_history \fP by default).
531
531
.IP
532
- This is equivalent to the \fB -X gil \fR option.
532
+ This is equivalent to the \fB \ -X gil \fR option.
533
533
.IP PYTHONNODEBUGRANGES
534
534
If this variable is set, it disables the inclusion of the tables mapping
535
535
extra location information (end line, start column offset and end column
@@ -576,7 +576,7 @@ when converting from a string and when converting an int back to a str.
576
576
A value of 0 disables the limit. Conversions to or from bases 2, 4, 8,
577
577
16, and 32 are never limited.
578
578
.IP
579
- This is equivalent to the \fB -X int_max_str_digits= \fI NUMBER \fR option.
579
+ This is equivalent to the \fB \ -X int_max_str_digits= \fI NUMBER \fR option.
580
580
.IP PYTHONIOENCODING
581
581
If this is set before running the interpreter, it overrides the encoding used
582
582
for stdin/stdout/stderr, in the syntax
@@ -686,7 +686,7 @@ If this is set to a non-empty string it is equivalent to specifying
686
686
the \fB \- u \fP option.
687
687
.IP PYTHONUSERBASE
688
688
Defines the user base directory, which is used to compute the path of the user
689
- .IR site-packages
689
+ .IR site\ - packages
690
690
directory and installation paths for
691
691
.IR " python \- m pip install \-\- user" .
692
692
.IP PYTHONUTF8
@@ -704,7 +704,7 @@ specifying the \fB\-W\fP option for each separate value.
704
704
.SS Debug-mode variables
705
705
Setting these variables only has an effect in a debug build of Python, that is,
706
706
if Python was configured with the
707
- \fB \- -with-pydebug \fP build option.
707
+ \fB \-\ - with \ -pydebug \fP build option.
708
708
.IP PYTHONDUMPREFS
709
709
If this environment variable is set, Python will dump objects and reference
710
710
counts still alive after shutting down the interpreter.
@@ -718,7 +718,7 @@ early in the interpreter lifecycle, before the \fIsite\fR module is
718
718
executed, and before the \fI __main__ \fR module is created.
719
719
This only works on debug builds.
720
720
.IP
721
- This is equivalent to the \fB -X presite= \fI module \fR option.
721
+ This is equivalent to the \fB \ -X presite= \fI module \fR option.
722
722
.SH AUTHOR
723
723
The Python Software Foundation: https://www.python.org/psf/
724
724
.SH INTERNET RESOURCES
0 commit comments