Dear python-mode maintainers, I'd like to suggest adding the following command to python.el, and binding it to C- by default. I'd love to hear your thoughts. (defun python-shell-send-paragraph (&optional send-main msg) "Send all lines of code between two white lines to inferior Python process. SEND-MAIN defaults to nil and MSG to t. See `python-shell-send-region for more information. Interactively, SEND-MAIN is the prefix argument" (interactive "Pi") (python-shell-send-region (or (save-excursion (re-search-backward "^[:blank:]*$" nil t)) (point-min)) (or (save-excursion (re-search-forward "^[:blank:]*$" nil t)) (point-max)) send-main (not msg) t)) With kind regards. Machiel Kroon