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

Member predicate ClassObject::getProbableSingletonInstance

Gets an object which is the sole instance of this class, if this class is probably a singleton. Note the ‘probable’ in the name; there is no guarantee that this class is in fact a singleton. It is guaranteed that getProbableSingletonInstance() returns at most one Object for each ClassObject.

Object getProbableSingletonInstance()