@@ -100,10 +100,18 @@ Improved Error Messages
100100
101101* The interpreter now colorizes error messages when displaying tracebacks by default.
102102 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
104104 variables. See also :ref: `using-on-controlling-color `.
105105 (Contributed by Pablo Galindo Salgado in :gh: `112730 `.)
106106
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+
107115* A common mistake is to write a script with the same name as a
108116 standard library module. When this results in errors, we now
109117 display a more helpful error message:
@@ -439,6 +447,12 @@ doctest
439447 :attr: `doctest.TestResults.skipped ` attributes.
440448 (Contributed by Victor Stinner in :gh: `108794 `.)
441449
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+
442456email
443457-----
444458
0 commit comments