CodeQL library for Python
Search

Predicate major_version

the Python major version number

Import path

import python
int major_version()