CodeQL library for Python
codeql/python-all 1.0.3-dev (changelog, source)

Member predicate ClassValue::lookup

Looks up the attribute name on this class. Note that this may be different from this.attr(name). For example given the class:

       def f(cls): pass

this.lookup("f") is equivalent to C.__dict__['f'], which is the class-method whereas this.attr("f") is equivalent to C.f, which is a bound-method.

Value lookup(string name)