File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -610,7 +610,9 @@ Miscellaneous options
610
610
.. versionadded :: 3.13
611
611
The ``-X presite `` option.
612
612
613
- Controlling Color
613
+ .. _using-on-controlling-color :
614
+
615
+ Controlling color
614
616
~~~~~~~~~~~~~~~~~
615
617
616
618
The Python interpreter is configured by default to use colors to highlight
@@ -1133,6 +1135,7 @@ conflict.
1133
1135
1134
1136
If this variable is set to ``1 ``, the interpreter will colorize various kinds
1135
1137
of output. Setting it to ``0 `` deactivates this behavior.
1138
+ See also :ref: `using-on-controlling-color `.
1136
1139
1137
1140
.. versionadded :: 3.13
1138
1141
Original file line number Diff line number Diff line change @@ -91,7 +91,8 @@ Improved Error Messages
91
91
* The interpreter now colorizes error messages when displaying tracebacks by default.
92
92
This feature can be controlled via the new :envvar: `PYTHON_COLORS ` environment
93
93
variable as well as the canonical ``NO_COLOR `` and ``FORCE_COLOR `` environment
94
- variables. (Contributed by Pablo Galindo Salgado in :gh: `112730 `.)
94
+ variables. See also :ref: `using-on-controlling-color `.
95
+ (Contributed by Pablo Galindo Salgado in :gh: `112730 `.)
95
96
96
97
Other Language Changes
97
98
======================
Original file line number Diff line number Diff line change @@ -601,6 +601,9 @@ show how long each import takes. This is exactly equivalent to setting
601
601
.IP PYTHONBREAKPOINT
602
602
If this environment variable is set to 0, it disables the default debugger. It
603
603
can be set to the callable of your debugger of choice.
604
+ .IP PYTHON_COLORS
605
+ If this variable is set to 1, the interpreter will colorize various kinds of
606
+ output. Setting it to 0 deactivates this behavior.
604
607
.SS Debug-mode variables
605
608
Setting these variables only has an effect in a debug build of Python, that is,
606
609
if Python was configured with the
You can’t perform that action at this time.
0 commit comments