@@ -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:
@@ -437,6 +445,12 @@ doctest
437
445
:attr: `doctest.TestResults.skipped ` attributes.
438
446
(Contributed by Victor Stinner in :gh: `108794 `.)
439
447
448
+ * Color is added to the output by default.
449
+ This can be controlled via the new :envvar: `PYTHON_COLORS ` environment
450
+ variable as well as the canonical |NO_COLOR |_ and |FORCE_COLOR |_ environment
451
+ variables. See also :ref: `using-on-controlling-color `.
452
+ (Contributed by Hugo van Kemenade in :gh: `117225 `.)
453
+
440
454
email
441
455
-----
442
456
0 commit comments