diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst index 2f8b652d47e428..51d59b9fc88bc3 100644 --- a/Doc/whatsnew/3.14.rst +++ b/Doc/whatsnew/3.14.rst @@ -71,7 +71,12 @@ Summary -- release highlights * :ref:`PEP 761: Discontinuation of PGP signatures ` * :ref:`PEP 765: Disallow return/break/continue that exit a finally block ` * :ref:`PEP 768: Safe external debugger interface for CPython ` -* :ref:`A new type of interpreter ` +* :ref:`A new type of interpreter ` +* :ref:`Syntax highlighting in PyREPL `, + and color output in :ref:`unittest `, + :ref:`argparse `, + :ref:`json ` and + :ref:`calendar ` CLIs Incompatible changes @@ -560,6 +565,9 @@ For further information on how to build Python, see (Contributed by Ken Jin in :gh:`128563`, with ideas on how to implement this in CPython by Mark Shannon, Garrett Gu, Haoran Xu, and Josh Haberman.) + +.. _whatsnew314-pyrepl-highlighting: + Syntax highlighting in PyREPL ----------------------------- @@ -698,6 +706,17 @@ argparse and subparser names if mistyped by the user. (Contributed by Savannah Ostrowski in :gh:`124456`.) + .. _whatsnew314-color-argparse: + +* Introduced the optional *color* parameter to + :class:`argparse.ArgumentParser`, enabling color for help text. + This can be controlled via the :envvar:`PYTHON_COLORS` environment + variable as well as the canonical |NO_COLOR|_ + and |FORCE_COLOR|_ environment variables. + See also :ref:`using-on-controlling-color`. + (Contributed by Hugo van Kemenade in :gh:`130645`.) + + ast --- @@ -723,6 +742,9 @@ bdb * The :mod:`bdb` module now supports the :mod:`sys.monitoring` backend. (Contributed by Tian Gao in :gh:`124533`.) + + .. _whatsnew314-color-calendar: + calendar -------- @@ -1021,6 +1043,8 @@ json See the :ref:`JSON command-line interface ` documentation. (Contributed by Trey Hunner in :gh:`122873`.) + .. _whatsnew314-color-json: + * By default, the output of the :ref:`JSON command-line interface ` is highlighted in color. This can be controlled via the :envvar:`PYTHON_COLORS` environment variable as well as the canonical @@ -1467,6 +1491,8 @@ unicodedata * The Unicode database has been updated to Unicode 16.0.0. +.. _whatsnew314-color-unittest: + unittest --------