]> git.eshelyaron.com Git - emacs.git/commitdiff
Disable PyREPL in Python shell
authorLiu Hui <liuhui1610@gmail.com>
Tue, 18 Feb 2025 09:52:36 +0000 (17:52 +0800)
committerEshel Yaron <me@eshelyaron.com>
Tue, 18 Feb 2025 21:33:41 +0000 (22:33 +0100)
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)

lisp/progmodes/python.el

index 26b3693b2a8edac169c38d8dff310c8de6a9ca74..e08b20804639886406a1e43ccf2de0f61191c137 100644 (file)
@@ -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