python-info-current-defun
python-info-current-defun is a compiled Lisp function in `python.el
'.
(python-info-current-defun &optional INCLUDE-TYPE)
Return name of surrounding function with Python compatible dotty syntax.
Optional argument INCLUDE-TYPE indicates to include the type of the defun.
This function can be used as the value of `add-log-current-defun-function'
since it returns nil if point is not inside a defun.