Skip to content

Commit a85f526

Browse files
authored
gh-123299: Add PyREPL syntax highlighting to release highlights (#133321)
1 parent f16f06f commit a85f526

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

Doc/whatsnew/3.14.rst

+27-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ Summary -- release highlights
7171
* :ref:`PEP 761: Discontinuation of PGP signatures <whatsnew314-pep761>`
7272
* :ref:`PEP 765: Disallow return/break/continue that exit a finally block <whatsnew314-pep765>`
7373
* :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
7580

7681

7782
Incompatible changes
@@ -560,6 +565,9 @@ For further information on how to build Python, see
560565
(Contributed by Ken Jin in :gh:`128563`, with ideas on how to implement this
561566
in CPython by Mark Shannon, Garrett Gu, Haoran Xu, and Josh Haberman.)
562567

568+
569+
.. _whatsnew314-pyrepl-highlighting:
570+
563571
Syntax highlighting in PyREPL
564572
-----------------------------
565573

@@ -703,6 +711,17 @@ argparse
703711
and subparser names if mistyped by the user.
704712
(Contributed by Savannah Ostrowski in :gh:`124456`.)
705713

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+
706725
ast
707726
---
708727

@@ -728,6 +747,9 @@ bdb
728747
* The :mod:`bdb` module now supports the :mod:`sys.monitoring` backend.
729748
(Contributed by Tian Gao in :gh:`124533`.)
730749

750+
751+
.. _whatsnew314-color-calendar:
752+
731753
calendar
732754
--------
733755

@@ -1026,6 +1048,8 @@ json
10261048
See the :ref:`JSON command-line interface <json-commandline>` documentation.
10271049
(Contributed by Trey Hunner in :gh:`122873`.)
10281050

1051+
.. _whatsnew314-color-json:
1052+
10291053
* By default, the output of the :ref:`JSON command-line interface <json-commandline>`
10301054
is highlighted in color. This can be controlled via the
10311055
:envvar:`PYTHON_COLORS` environment variable as well as the canonical
@@ -1472,6 +1496,8 @@ unicodedata
14721496
* The Unicode database has been updated to Unicode 16.0.0.
14731497

14741498

1499+
.. _whatsnew314-color-unittest:
1500+
14751501
unittest
14761502
--------
14771503

0 commit comments

Comments
 (0)