@@ -80,7 +80,7 @@ python \- an interpreted, interactive, object-oriented programming language
8080]
8181.br
8282 [
83- .B \- -check-hash-based-pycs
83+ .B \-\ - check-hash-based-pycs
8484.I default
8585|
8686.I always
@@ -89,16 +89,16 @@ python \- an interpreted, interactive, object-oriented programming language
8989]
9090.br
9191 [
92- .B \- -help
92+ .B \-\ - help
9393]
9494[
95- .B \- -help-env
95+ .B \-\ - help\ - env
9696]
9797[
98- .B \- -help-xoptions
98+ .B \-\ - help\ - xoptions
9999]
100100[
101- .B \- -help-all
101+ .B \-\ - help\ - all
102102]
103103.br
104104 [
@@ -144,14 +144,14 @@ files on import. See also PYTHONDONTWRITEBYTECODE.
144144.TP
145145.B \- b
146146Issue 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)
148148.TP
149149.BI " \- c " command
150150Specify the command to execute (see next section).
151151This terminates the option list (following options are passed as
152152arguments to the command).
153153.TP
154- .BI " \-\- check-hash-based-pycs " mode
154+ .BI " \-\- check\ - hash\ - based\ - pycs " mode
155155Configure how Python evaluates the up-to-dateness of hash-based .pyc files.
156156.TP
157157.B \- d
@@ -185,7 +185,7 @@ raises an exception.
185185.B \- I
186186Run Python in isolated mode. This also implies \fB \- E \fP , \fB \- P \fP and \fB \- s \fP . In
187187isolated 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.
189189Further restrictions may be imposed to prevent the user from injecting
190190malicious code.
191191.TP
@@ -203,7 +203,7 @@ __debug__; augment the filename for compiled (bytecode) files by
203203adding .opt-1 before the .pyc extension.
204204.TP
205205.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
207207compiled (bytecode) files by adding .opt-2 before the .pyc extension.
208208.TP
209209.B \- P
@@ -266,16 +266,16 @@ emitted by a process (even those that are otherwise ignored by default):
266266
267267The action names can be abbreviated as desired and the interpreter will resolve
268268them to the appropriate action name. For example,
269- .B -Wi
269+ .B \ - Wi
270270is the same as
271- .B -Wignore .
271+ .B \ -Wignore .
272272
273273The full form of argument is:
274274.IB action:message:category:module:lineno
275275
276276Empty fields match all values; trailing empty fields may be omitted. For
277277example
278- .B -W ignore::DeprecationWarning
278+ .B \ -W ignore::DeprecationWarning
279279ignores all DeprecationWarning warnings.
280280
281281The
@@ -304,10 +304,10 @@ field matches the line number, where zero matches all line numbers and is thus
304304equivalent to an omitted line number.
305305
306306Multiple
307- .B -W
307+ .B \ - W
308308options can be given; when a warning matches more than one option, the action
309309for the last matching option is performed. Invalid
310- .B -W
310+ .B \ - W
311311options are ignored (though, a warning message is printed about invalid options
312312when the first warning is issued).
313313
@@ -321,15 +321,15 @@ a regular expression on the warning message.
321321.BI " \- X " option
322322Set implementation-specific option. The following options are available:
323323
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
326326
327- \fB -X dev \fR : enable CPython's "development mode", introducing additional
327+ \fB \ -X dev \fR : enable CPython's "development mode", introducing additional
328328 runtime checks which are too expensive to be enabled by default. It
329329 will not be more verbose than the default if the code is correct: new
330330 warnings are only emitted when an issue is detected. Effect of the
331331 developer mode:
332- * Add default warning filter, as \fB -W default \fR
332+ * Add default warning filter, as \fB \ -W default \fR
333333 * Install debug hooks on memory allocators: see the
334334 PyMem_SetupDebugHooks() C function
335335 * Enable the faulthandler module to dump the Python traceback on a
@@ -338,59 +338,59 @@ Set implementation-specific option. The following options are available:
338338 * Set the dev_mode attribute of sys.flags to True
339339 * io.IOBase destructor logs close() exceptions
340340
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,
342342 cumulative time (including nested imports) and self time (excluding
343343 nested imports). Note that its output may be broken in multi-threaded
344344 application. Typical usage is
345- \fB python3 -X importtime -c 'import asyncio' \fR
345+ \fB python3 \ -X importtime \ -c 'import asyncio' \fR
346346
347- \fB -X faulthandler \fR : enable faulthandler
347+ \fB \ -X faulthandler \fR : enable faulthandler
348348
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
350350 should be used.
351351 The default is "on" (or "off" if you are running a local build).
352352
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
354354 \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 .
356356
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.
358358 This helps avoid denial of service attacks when parsing untrusted data.
359359 The default is sys.int_info.default_max_str_digits. 0 disables.
360360
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
362362 location information (end line, start column offset and end column
363363 offset) to every instruction in code objects. This is useful when
364364 smaller code objects and pyc files are desired as well as suppressing
365365 the extra visual location indicators when the interpreter displays
366366 tracebacks.
367367
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
369369
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;
371371 also \fB PYTHON_PERF_JIT_SUPPORT=1 \fR
372372
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
374374 This only works on debug builds.
375375
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
377377 tree rooted at the given directory instead of to the code tree.
378378
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
380380 memory blocks when the program finishes or after each statement in the
381381 interactive interpreter. This only works on debug builds
382382
383- \fB -X tracemalloc \fR : start tracing Python memory allocations using the
383+ \fB \ -X tracemalloc \fR : start tracing Python memory allocations using the
384384 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
386386 traceback limit of NFRAME frames
387387
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
390390 disables UTF-8 mode (even when it would otherwise activate
391391 automatically). See \fB PYTHONUTF8 \fR for more details
392392
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'
394394
395395.TP
396396.B \- x
@@ -430,7 +430,7 @@ is an empty string; if
430430is used,
431431.I sys.argv[0]
432432contains the string
433- .I '-c'.
433+ .I '\ - c'.
434434Note that options interpreted by the Python interpreter itself
435435are not placed in
436436.IR sys.argv .
@@ -513,7 +513,7 @@ If this environment variable is set to a non-empty string,
513513is called at startup: install a handler for SIGSEGV, SIGFPE, SIGABRT, SIGBUS
514514and SIGILL signals to dump the Python traceback.
515515.IP
516- This is equivalent to the \fB -X faulthandler \fP option.
516+ This is equivalent to the \fB \ -X faulthandler \fP option.
517517.IP PYTHON_FROZEN_MODULES
518518If this variable is set to \fB on \fR or \fB off \fR , it determines whether or not
519519frozen 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.
524524.IP PYTHON_GIL
525525If this variable is set to 1, the global interpreter lock (GIL) will be forced
526526on. 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 .
528528.IP PYTHON_HISTORY
529529This environment variable can be used to set the location of a history file
530530(on Unix, it is \fI ~/.python_history \fP by default).
531531.IP
532- This is equivalent to the \fB -X gil \fR option.
532+ This is equivalent to the \fB \ -X gil \fR option.
533533.IP PYTHONNODEBUGRANGES
534534If this variable is set, it disables the inclusion of the tables mapping
535535extra 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.
576576A value of 0 disables the limit. Conversions to or from bases 2, 4, 8,
57757716, and 32 are never limited.
578578.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.
580580.IP PYTHONIOENCODING
581581If this is set before running the interpreter, it overrides the encoding used
582582for stdin/stdout/stderr, in the syntax
@@ -686,7 +686,7 @@ If this is set to a non-empty string it is equivalent to specifying
686686the \fB \- u \fP option.
687687.IP PYTHONUSERBASE
688688Defines the user base directory, which is used to compute the path of the user
689- .IR site-packages
689+ .IR site\ - packages
690690directory and installation paths for
691691.IR " python \- m pip install \-\- user" .
692692.IP PYTHONUTF8
@@ -704,7 +704,7 @@ specifying the \fB\-W\fP option for each separate value.
704704.SS Debug-mode variables
705705Setting these variables only has an effect in a debug build of Python, that is,
706706if Python was configured with the
707- \fB \- -with-pydebug \fP build option.
707+ \fB \-\ - with \ -pydebug \fP build option.
708708.IP PYTHONDUMPREFS
709709If this environment variable is set, Python will dump objects and reference
710710counts still alive after shutting down the interpreter.
@@ -718,7 +718,7 @@ early in the interpreter lifecycle, before the \fIsite\fR module is
718718executed, and before the \fI __main__ \fR module is created.
719719This only works on debug builds.
720720.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.
722722.SH AUTHOR
723723The Python Software Foundation: https://www.python.org/psf/
724724.SH INTERNET RESOURCES
0 commit comments