Function: python-nav-up-list
python-nav-up-list is an interactive and byte-compiled function
defined in python.el.gz.
Signature
(python-nav-up-list &optional ARG)
Documentation
Move forward out of one level of parentheses (or blocks).
With ARG, do this that many times. A negative argument means move backward but still to a less deep spot. This command assumes point is not in a string or comment.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-nav-up-list (&optional arg)
"Move forward out of one level of parentheses (or blocks).
With ARG, do this that many times.
A negative argument means move backward but still to a less deep spot.
This command assumes point is not in a string or comment."
(interactive "^p")
(or arg (setq arg 1))
(while (> arg 0)
(python-nav--up-list 1)
(setq arg (1- arg)))
(while (< arg 0)
(python-nav--up-list -1)
(setq arg (1+ arg))))