Variable: python-nav-beginning-of-block-regexp
python-nav-beginning-of-block-regexp is a variable defined in
python.el.gz.
Value
"^[[:space:]]*\\_<\\(?:def\\|class\\|if\\|elif\\|else\\|try\\|except\\|finally\\|for\\|while\\|with\\|match\\|case\\|async[[:space:]]+\\(?:def\\|for\\|with\\)\\)\\_>"
Documentation
Regexp matching block start.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defvar python-nav-beginning-of-block-regexp
(python-rx line-start (* space) block-start)
"Regexp matching block start.")