Putting (require 'midnight) in your init file no longer activates the
mode. Now, one needs to say (midnight-mode +1) instead.
+** Python mode
+
+---
+*** Prefer "python" for 'python-interpreter' and 'python-shell-interpreter'.
+On recent versions of mainstream GNU/Linux distributions, "python"
+either does not exist or it points to Python 3. These user options now
+default to using "python", falling back to "python3" if it does not
+exist. If "python" points to Python 2 on your system, you now have to
+customize these variables to "python3" if you want to use Python 3
+instead.
+
\f
* New Modes and Packages in Emacs 31.1
:link '(emacs-commentary-link "python"))
(defcustom python-interpreter
- (cond ((executable-find "python3") "python3")
- ((executable-find "python") "python")
+ (cond ((executable-find "python") "python")
+ ((executable-find "python3") "python3")
(t "python3"))
"Python interpreter for noninteractive use.
Some Python interpreters also require changes to
:safe 'stringp)
(defcustom python-shell-interpreter
- (cond ((executable-find "python3") "python3")
- ((executable-find "python") "python")
+ (cond ((executable-find "python") "python")
+ ((executable-find "python3") "python3")
(t "python3"))
"Python interpreter for interactive use.
`python-shell-interpreter-args'. In particular, setting
`python-shell-interpreter' to \"ipython3\" requires setting
`python-shell-interpreter-args' to \"--simple-prompt\"."
- :version "28.1"
+ :version "31.1"
:type 'string)
(defcustom python-shell-internal-buffer-name "Python Internal"