diff options
Diffstat (limited to 'Misc/python.man')
-rw-r--r-- | Misc/python.man | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Misc/python.man b/Misc/python.man index fa88a2586dc..612e2bbf568 100644 --- a/Misc/python.man +++ b/Misc/python.man @@ -344,6 +344,10 @@ Set implementation-specific option. The following options are available: application. Typical usage is \fBpython3 \-X importtime \-c 'import asyncio'\fR + \fB\-X importtime=2\fR enables additional output that indicates when an + imported module has already been loaded. In such cases, the string + \fBcached\fR will be printed in both time columns. + \fB\-X faulthandler\fR: enable faulthandler \fB\-X frozen_modules=\fR[\fBon\fR|\fBoff\fR]: whether or not frozen modules @@ -525,11 +529,11 @@ See also the \fB\-X frozen_modules\fR option. If this variable is set to 1, the global interpreter lock (GIL) will be forced on. Setting it to 0 forces the GIL off. Only available in builds configured with \fB\-\-disable\-gil\fP. +.IP +This is equivalent to the \fB\-X gil\fR option. .IP PYTHON_HISTORY This environment variable can be used to set the location of a history file (on Unix, it is \fI~/.python_history\fP by default). -.IP -This is equivalent to the \fB\-X gil\fR option. .IP PYTHONNODEBUGRANGES If this variable is set, it disables the inclusion of the tables mapping extra location information (end line, start column offset and end column @@ -648,9 +652,10 @@ See also the \fB\-X perf\fR option. .IP PYTHONPLATLIBDIR Override sys.platlibdir. .IP PYTHONPROFILEIMPORTTIME -If this environment variable is set to a non-empty string, Python will -show how long each import takes. This is exactly equivalent to setting -\fB\-X importtime\fP on the command line. +If this environment variable is set to \fB1\fR, Python will show +how long each import takes. If set to \fB2\fR, Python will include output for +imported modules that have already been loaded. +This is exactly equivalent to setting \fB\-X importtime\fP on the command line. .IP PYTHONPYCACHEPREFIX If this is set, Python will write \fB.pyc\fR files in a mirror directory tree at this path, instead of in \fB__pycache__\fR directories within the source |