Function: python-shell-get-process-name
python-shell-get-process-name is a byte-compiled function defined in
python.el.gz.
Signature
(python-shell-get-process-name DEDICATED)
Documentation
Calculate the appropriate process name for inferior Python process.
If DEDICATED is t returns a string with the form
python-shell-buffer-name[buffer-name] else returns the value
of python-shell-buffer-name.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-shell-get-process-name (dedicated)
"Calculate the appropriate process name for inferior Python process.
If DEDICATED is t returns a string with the form
`python-shell-buffer-name'[`buffer-name'] else returns the value
of `python-shell-buffer-name'."
(if dedicated
(format "%s[%s]" python-shell-buffer-name (buffer-name))
python-shell-buffer-name))