Skip to content

Commit

Permalink
Add to What's New
Browse files Browse the repository at this point in the history
  • Loading branch information
ambv committed May 5, 2024
1 parent d2de559 commit 3053b39
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,34 @@ New typing features:
New Features
============

A Better Interactive Interpreter
--------------------------------

On Unix-like systems like Linux or macOS, Python now uses a new
:term:`interactive` shell. When the user starts the :term:`REPL`
from a tty, and both :mod:`curses` and :mod:`readline` are available,
the interactive shell now supports the following new features:

* colorized prompts;
* multiline editing with history preservation;
* interactive help browsing using :kbd:`F1` with a separate command
history;
* history browsing using :kbd:`F2` that skips output as well as the
:term:`>>>` and :term:`...` prompts;
* "paste mode" with :kbd:`F3` that makes pasting larger blocks of code
easier (press :kbd:`F3` again to return to the regular prompt);
* ability to issue REPL-specific commands like :kbd:`help`, :kbd:`exit`,
and :kbd:`quit` without the need to use call parentheses after the
command name.

If the new interactive shell is not desired, it can be disabled via
the :envvar:`PYTHON_BASIC_REPL` environment variable.

For more on interactive mode, see :ref:`tut-interac`.

(Contributed by Pablo Galindo Galgado, Łukasz Langa, and
Lysandros Nikolaou in :gh:`111201`.)

Improved Error Messages
-----------------------

Expand Down

0 comments on commit 3053b39

Please sign in to comment.