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

Predicate bounded_toString

Returns a string representation of obj. Because some classes have (mutually) recursive toString implementations, this predicate acts as a stop for these classes, preventing an unbounded toString from being materialized.

Import path

import semmle.python.objects.ObjectInternal
string bounded_toString(ObjectInternal obj)