@@ -71,7 +71,12 @@ Summary -- release highlights
71
71
* :ref: `PEP 761: Discontinuation of PGP signatures <whatsnew314-pep761 >`
72
72
* :ref: `PEP 765: Disallow return/break/continue that exit a finally block <whatsnew314-pep765 >`
73
73
* :ref: `PEP 768: Safe external debugger interface for CPython <whatsnew314-pep768 >`
74
- * :ref: `A new type of interpreter <whatsnew314-tail-call >`
74
+ * :ref: `A new type of interpreter <whatsnew314-tail-call >`
75
+ * :ref: `Syntax highlighting in PyREPL <whatsnew314-pyrepl-highlighting >`,
76
+ and color output in :ref: `unittest <whatsnew314-color-unittest >`,
77
+ :ref: `argparse <whatsnew314-color-argparse >`,
78
+ :ref: `json <whatsnew314-color-json >` and
79
+ :ref: `calendar <whatsnew314-color-calendar >` CLIs
75
80
76
81
77
82
Incompatible changes
@@ -560,6 +565,9 @@ For further information on how to build Python, see
560
565
(Contributed by Ken Jin in :gh: `128563 `, with ideas on how to implement this
561
566
in CPython by Mark Shannon, Garrett Gu, Haoran Xu, and Josh Haberman.)
562
567
568
+
569
+ .. _whatsnew314-pyrepl-highlighting :
570
+
563
571
Syntax highlighting in PyREPL
564
572
-----------------------------
565
573
@@ -703,6 +711,17 @@ argparse
703
711
and subparser names if mistyped by the user.
704
712
(Contributed by Savannah Ostrowski in :gh: `124456 `.)
705
713
714
+ .. _whatsnew314-color-argparse :
715
+
716
+ * Introduced the optional *color * parameter to
717
+ :class: `argparse.ArgumentParser `, enabling color for help text.
718
+ This can be controlled via the :envvar: `PYTHON_COLORS ` environment
719
+ variable as well as the canonical |NO_COLOR |_
720
+ and |FORCE_COLOR |_ environment variables.
721
+ See also :ref: `using-on-controlling-color `.
722
+ (Contributed by Hugo van Kemenade in :gh: `130645 `.)
723
+
724
+
706
725
ast
707
726
---
708
727
728
747
* The :mod: `bdb ` module now supports the :mod: `sys.monitoring ` backend.
729
748
(Contributed by Tian Gao in :gh: `124533 `.)
730
749
750
+
751
+ .. _whatsnew314-color-calendar :
752
+
731
753
calendar
732
754
--------
733
755
@@ -1026,6 +1048,8 @@ json
1026
1048
See the :ref: `JSON command-line interface <json-commandline >` documentation.
1027
1049
(Contributed by Trey Hunner in :gh: `122873 `.)
1028
1050
1051
+ .. _whatsnew314-color-json :
1052
+
1029
1053
* By default, the output of the :ref: `JSON command-line interface <json-commandline >`
1030
1054
is highlighted in color. This can be controlled via the
1031
1055
:envvar: `PYTHON_COLORS ` environment variable as well as the canonical
@@ -1472,6 +1496,8 @@ unicodedata
1472
1496
* The Unicode database has been updated to Unicode 16.0.0.
1473
1497
1474
1498
1499
+ .. _whatsnew314-color-unittest :
1500
+
1475
1501
unittest
1476
1502
--------
1477
1503
0 commit comments