From: Liu Hui Date: Tue, 18 Feb 2025 09:52:36 +0000 (+0800) Subject: Disable PyREPL in Python shell X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=80caec417b241877e71b878a615230310e009691;p=emacs.git 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) (cherry picked from commit db8af88222bbf06948622d2b4fc4d27b73350b83) --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 26b3693b2a8..e08b2080463 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -2924,6 +2924,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