@@ -100,10 +100,18 @@ Improved Error Messages
100
100
101
101
* The interpreter now colorizes error messages when displaying tracebacks by default.
102
102
This feature can be controlled via the new :envvar: `PYTHON_COLORS ` environment
103
- variable as well as the canonical `` NO_COLOR `` and `` FORCE_COLOR `` environment
103
+ variable as well as the canonical | NO_COLOR |_ and | FORCE_COLOR |_ environment
104
104
variables. See also :ref: `using-on-controlling-color `.
105
105
(Contributed by Pablo Galindo Salgado in :gh: `112730 `.)
106
106
107
+ .. Apparently this how you hack together a formatted link:
108
+
109
+ .. |FORCE_COLOR | replace :: ``FORCE_COLOR ``
110
+ .. _FORCE_COLOR : https://force-color.org/
111
+
112
+ .. |NO_COLOR | replace :: ``NO_COLOR ``
113
+ .. _NO_COLOR : https://no-color.org/
114
+
107
115
* A common mistake is to write a script with the same name as a
108
116
standard library module. When this results in errors, we now
109
117
display a more helpful error message:
@@ -439,6 +447,12 @@ doctest
439
447
:attr: `doctest.TestResults.skipped ` attributes.
440
448
(Contributed by Victor Stinner in :gh: `108794 `.)
441
449
450
+ * Color is added to the output by default.
451
+ This can be controlled via the new :envvar: `PYTHON_COLORS ` environment
452
+ variable as well as the canonical |NO_COLOR |_ and |FORCE_COLOR |_ environment
453
+ variables. See also :ref: `using-on-controlling-color `.
454
+ (Contributed by Hugo van Kemenade in :gh: `117225 `.)
455
+
442
456
email
443
457
-----
444
458
0 commit comments