On Sat, 17 Sep 2022 at 14:04, Stefan Kangas wrote: > Augusto Stoffel writes: > >> Okay, then let's decide later (or not decide :-)). > > :-) > >> No, and if fact, if the process is dead, you want to call this command >> to start the shell again (it happens to me and it works). > > Makes sense. > >> Subject: [PATCH] * lisp/progmodes/python.el (python-shell-restart): New >> command. > > BTW, maybe you want to add a first line with text like > > Add new command python-shell-restart Find attached a patch with an expanded commit message, and also an unrelated but trivial refinement for something else.