Function: run-python-internal
run-python-internal is a byte-compiled function defined in
python.el.gz.
Signature
(run-python-internal)
Documentation
Run an inferior Internal Python process.
Input and output via buffer named after
python-shell-internal-buffer-name and what
python-shell-internal-get-process-name returns.
This new kind of shell is intended to be used for generic
communication related to defined configurations; the main
difference with global or dedicated shells is that these ones are
attached to a configuration, not a buffer. This means that can
be used for example to retrieve the sys.path and other stuff,
without messing with user shells. Note that
python-shell-font-lock-enable and inferior-python-mode-hook
are set to nil for these shells, so setup codes are not sent at
startup.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun run-python-internal ()
"Run an inferior Internal Python process.
Input and output via buffer named after
`python-shell-internal-buffer-name' and what
`python-shell-internal-get-process-name' returns.
This new kind of shell is intended to be used for generic
communication related to defined configurations; the main
difference with global or dedicated shells is that these ones are
attached to a configuration, not a buffer. This means that can
be used for example to retrieve the sys.path and other stuff,
without messing with user shells. Note that
`python-shell-font-lock-enable' and `inferior-python-mode-hook'
are set to nil for these shells, so setup codes are not sent at
startup."
(let ((python-shell-font-lock-enable nil)
(inferior-python-mode-hook nil))
(get-buffer-process
(python-shell-make-comint
(python-shell-calculate-command)
(python-shell-internal-get-process-name) nil t))))