Subject: Please use 'python3' command instead of 'python'

From: Balint Reczey <[email-masked]>
Date: Mon, 4 Jan 2021 16:14:02 +0100

Hi,

Python 2 reached EOL about a year ago thus the 'python' command may be
missing on some systems.
'python3' is the standard way of invoking the Python 3 interpreter,
thus Emacs would have a better chance trying that.

The attached patch is already carried in Ubuntu.

Cheers,
Balint

[1] https://www.python.org/doc/sunset-python-2/

-- 
Balint Reczey
Ubuntu & Debian Developer
Description: Run python3 command as default instead of python
Author: Balint Reczey <[email-masked]>
Origin: vendor
Forwarded: no
Last-Update: 2020-03-25

--- a/lisp/ldefs-boot.el
+++ b/lisp/ldefs-boot.el
@@ -26539,7 +26539,7 @@
 
 (add-to-list 'interpreter-mode-alist (cons (purecopy "python[0-9.]*") 'python-mode))
 
-(autoload 'run-python "python" "\
+(autoload 'run-python "python3" "\
 Run an inferior Python process.
 
 Argument CMD defaults to `python-shell-calculate-command' return
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1952,7 +1952,7 @@
   :group 'python
   :safe 'stringp)
 
-(defcustom python-shell-interpreter "python"
+(defcustom python-shell-interpreter "python3"
   "Default Python interpreter for shell."
   :type 'string
   :group 'python)