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

Member predicate Function::isSpecialMethod

Whether this is a special method, that is does its name have the form __xxx__ (except __init__)

predicate isSpecialMethod()