Function: semantic-python-instance-variable-p
semantic-python-instance-variable-p is a byte-compiled function
defined in python.el.gz.
Signature
(semantic-python-instance-variable-p TAG &optional SELF)
Documentation
Return non-nil if TAG is an instance variable of the instance SELF or the instance name "self" if SELF is nil.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/wisent/python.el.gz
(defun semantic-python-instance-variable-p (tag &optional self)
"Return non-nil if TAG is an instance variable of the instance
SELF or the instance name \"self\" if SELF is nil."
(when (semantic-tag-of-class-p tag 'variable)
(let ((name (semantic-tag-name tag)))
(when (string-match
(rx-to-string
`(seq string-start ,(or self "self") "."))
name)
(not (string-search "." (substring name 5)))))))