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

Module Operations

Import path

import semmle.python.Operations

Imports

Classes

Add

An add (+) binary operator

And

An and boolean operator

BinaryExpr

A binary expression, such as x + y

BitAnd

A bitwise and (&) binary operator

BitOr

A bitwise or (|) binary operator

BitXor

A bitwise exclusive-or (^) binary operator

BoolExpr

A boolean shortcut (and/or) operation

Boolop

A short circuit boolean operator, and/or

Cmpop

A comparison operator

CmpopList

A list of comparison operators in a comparison

Compare

A comparison operation, such as x<y

Div

An (true) divide (/) binary operator

Eq

An equals (==) comparison operator

FloorDiv

An floor divide (//) binary operator

Gt

A greater than (>) comparison operator

GtE

A greater than or equals (>=) comparison operator

In

An in comparison operator

Invert

An invert (~) unary operator

Is

An is comparison operator

IsNot

An is not comparison operator

LShift

A left shift (<<) binary operator

Lt

A less than (<) comparison operator

LtE

A less than or equals (<=) comparison operator

MatMult

A matrix multiplication (@) binary operator

Mod

A modulo (%) binary operator, which includes string formatting

Mult

A multiplication (*) binary operator

Not

A not unary operator

NotEq

A not equals (!=) comparison operator

NotIn

An not in comparison operator

Operator

The base class for operators

Or

An or boolean operator

Pow

A power (**) binary operator

RShift

A right shift (>>) binary operator

Sub

A subtract (-) binary operator

UAdd

A positive (+) unary operator

USub

A negation (-) unary operator

UnaryExpr

A unary expression: (+x), (-x) or (~x)

Unaryop

A unary operator: +, -, ~ or not