Skip to content

Commit db8af88

Browse files
ilupinskangas
authored andcommitted
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)
1 parent a75f444 commit db8af88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lisp/progmodes/python.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2930,6 +2930,7 @@ virtualenv related vars."
29302930
(let* ((virtualenv (when python-shell-virtualenv-root
29312931
(directory-file-name python-shell-virtualenv-root)))
29322932
(res python-shell-process-environment))
2933+
(push "PYTHON_BASIC_REPL=1" res)
29332934
(when python-shell-unbuffered
29342935
(push "PYTHONUNBUFFERED=1" res))
29352936
(when python-shell-extra-pythonpaths

0 commit comments

Comments
 (0)