python-mode

python-mode is an interactive autoloaded compiled Lisp function in `python.el'.


(python-mode)

Parent mode: `prog-mode'.

Major mode for editing Python files.

key binding
--- -------

C-c Prefix Command
ESC Prefix Command
DEL python-indent-dedent-line-backspace
<backtab> python-indent-dedent-line
<remap> Prefix Command

C-M-i completion-at-point
C-M-x python-shell-send-defun

C-c C-c python-shell-send-buffer
C-c C-f python-eldoc-at-point
C-c C-j imenu
C-c C-l python-shell-send-file
C-c C-p run-python
C-c C-r python-shell-send-region
C-c C-s python-shell-send-string
C-c C-t Prefix Command
C-c C-v python-check
C-c C-z python-shell-switch-to-shell
C-c < python-indent-shift-left
C-c > python-indent-shift-right

<remap> <backward-sentence> python-nav-backward-block
<remap> <backward-up-list> python-nav-backward-up-list
<remap> <forward-sentence> python-nav-forward-block

C-c C-t c python-skeleton-class
C-c C-t d python-skeleton-def
C-c C-t f python-skeleton-for
C-c C-t i python-skeleton-if
C-c C-t m python-skeleton-import
C-c C-t t python-skeleton-try
C-c C-t w python-skeleton-while



In addition to any hooks its parent mode `prog-mode' might have run,
this mode runs the hook `python-mode-hook', as the final step
during initialization.