Function: python-imenu--get-defun-type-name
python-imenu--get-defun-type-name is a byte-compiled function defined
in python.el.gz.
Signature
(python-imenu--get-defun-type-name)
Documentation
Return defun type and name at current position.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-imenu--get-defun-type-name ()
"Return defun type and name at current position."
(when (looking-at python-nav-beginning-of-defun-regexp)
(let ((split (split-string (match-string-no-properties 0))))
(if (= (length split) 2)
split
(list (concat (car split) " " (cadr split))
(car (last split)))))))