Module Object

Import path

semmle.python.types.Object

Imports

Predicates

builtin_object
quitterObject

The named quitter object (quit or exit) in the builtin namespace

theApplyFunction

The builtin function apply (Python 2 only)

theBuiltinModuleObject

The builtin module

theEmptyTupleObject
theExitFunctionObject

The builtin function sys.exit

theFalseObject

The built-in object False

theFormatFunction

The builtin function format

theGlobalsFunction

The builtin function globals

theHasattrFunction

The builtin function hasattr

theIndexErrorType

The IndexError class

theInputFunction

The builtin function input (Python 2 only)

theLenFunction

The builtin function len

theLocalsFunction

The builtin function locals

theLookupErrorType

The LookupError class

theNameErrorType

The NameError class

theNoneObject

The built-in object None

theNotImplementedObject

The builtin object NotImplemented. Not be confused with NotImplementedError.

theOpenFunction

The builtin function open

thePrintFunction

The builtin function print (Python 2.7 upwards)

theStandardErrorType

The StandardError class

theSysModuleObject

The sys module

theTrueObject

The built-in object True

theUnknownType

Classes

ListObject
NonEmptyTupleObject
NumericObject

Numeric objects (ints and floats). Includes those occurring in the source as a literal or in a builtin module as a value.

Object

Instances of this class represent objects in the Python program. However, since the QL database is static and Python programs are dynamic, there are necessarily a number of approximations.

SequenceObject

Sequence objects (lists and tuples) Includes those occurring in the source as a literal or in a builtin module as a value.

StringObject

String objects (unicode or bytes). Includes those occurring in the source as a literal or in a builtin module as a value.

TupleObject