python-shell-with-shell-buffer

python-shell-with-shell-buffer is a Lisp macro in `python.el'.

(python-shell-with-shell-buffer &rest BODY)

Execute the forms in BODY with the shell buffer temporarily current.
Signals an error if no shell buffer is available for current buffer.