Variable: python-nav-beginning-of-defun-regexp
python-nav-beginning-of-defun-regexp is a variable defined in
python.el.gz.
Value
"^[[:space:]]*\\_<\\(?:def\\|class\\|async[[:space:]]+def\\)\\_>[[:space:]]+\\([_[:alpha:]][_[:word:]]*\\)"
Documentation
Regexp matching class or function definition.
The name of the defun should be grouped so it can be retrieved
via match-string.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
;;; Navigation
(defvar python-nav-beginning-of-defun-regexp
(python-rx line-start (* space) defun (+ space) (group symbol-name))
"Regexp matching class or function definition.
The name of the defun should be grouped so it can be retrieved
via `match-string'.")