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

Member predicate ClassObjectInternal::lookup

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

       @classmethod
       def f(cls): pass

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

predicate lookup(string name, ObjectInternal value, CfgOrigin origin)