Get the latest tech news

PEP 762 – REPL-acing the default REPL


One of Python’s core strengths is its interactive mode, also known as the Read-Eval-Print Loop (REPL), or the Python console, or the Python shell. This PEP describes the new implementation of this functionality written in Python. The new REPL released i...

The new REPL released in Python 3.13 aims to provide modern features expected by today’s users, such as multi-line editing, syntax highlighting, custom commands, and an overall improved interactive experience. The previous REPL written in C leveraged the “readline” or “editline” libraries as a backend to allow certain features such as navigation, history preservation and recall, autocompletion, and configurable keyboard behavior. The PyREPL implementation is designed to maintain full backward compatibility with existing Python code as the old basic REPL will be preserved as a fallback and is available on demand, in case custom workflows require it.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of REPL

REPL

Photo of default REPL

default REPL

Photo of PEP 762

PEP 762

Related news:

News photo

Show HN: ClifferBasic, a simple BASIC interpreter as a .NET REPL

News photo

What's up Python? Django get background tasks, a new REPL, bye bye gunicorn

News photo

LuaX – Lua interpreter, REPL, and useful packages