Disable PyREPL in Python shell

The new default REPL (PyREPL) in Python 3.13 is incompatible
with Python shell and displays a warning message when reverting
to the old basic REPL.

* lisp/progmodes/python.el
(python-shell--calculate-process-environment): Use the basic
REPL.  (Bug#76205)
This commit is contained in:
Liu Hui 2025-02-18 17:52:36 +08:00 committed by Stefan Kangas
parent a75f4449fa
commit db8af88222

View file

@ -2930,6 +2930,7 @@ virtualenv related vars."
(let* ((virtualenv (when python-shell-virtualenv-root
(directory-file-name python-shell-virtualenv-root)))
(res python-shell-process-environment))
(push "PYTHON_BASIC_REPL=1" res)
(when python-shell-unbuffered
(push "PYTHONUNBUFFERED=1" res))
(when python-shell-extra-pythonpaths