Module ClassObject

Import path

semmle.python.types.ClassObject

Imports

Predicates

is_c_metaclass
theAbcMetaClassObject
theAttributeErrorType

The builtin class ‘AttributeError’

theBaseExceptionType

The builtin class ‘BaseException’

theBoolType

The built-in class ‘bool’

theBoundMethodType

The builtin class of bound methods

theBuiltinFunctionType

The class of builtin-functions

theBuiltinPropertyType

The class of builtin properties

theBytesType

The builtin class for bytes. str in Python2, bytes in Python3

theClassMethodType

The builtin class ‘classmethod’

theClassType

The builtin object ClassType (for old-style classes)

theComplexType

The builtin class ‘complex’

theDictType

The builtin class ‘dict’

theExceptionType

The builtin class ‘Exception’

theFloatType

The builtin class ‘float’

theGeneratorType

The class of generators

theGetSetDescriptorType

The builtin class of builtin properties

theIOErrorType

The builtin class ‘IOError’

theInstanceType

The builtin object InstanceType (for old-style classes)

theIntType

The builtin class ‘int’

theKeyErrorType

The builtin class ‘KeyError’

theListType

The builtin class ‘list’

theLongType

The builtin class ‘long’ (Python 2 only)

theMethodDescriptorType

The method descriptor class

theModuleType

The class of modules

theNoneType

The built-in class NoneType

theNotImplementedErrorType

The builtin class ‘NotImplementedError’

theObjectType

The builtin class ‘object’

thePropertyType

The builtin class ‘property’

thePyFunctionType

The class of Python functions

theRangeType

The builtin class ‘(x)range’

theSetType

The builtin class ‘set’

theStaticMethodType

The builtin class ‘staticmethod’

theStopIterationType

The builtin class ‘StopIteration’

theStrType

The ‘str’ class. This is the same as the ‘bytes’ class for Python 2 and the ‘unicode’ class for Python 3

theSuperType

The builtin class ‘super’

theTupleType

The builtin class ‘tuple’

theTypeErrorType

The builtin class ‘TypeError’

theTypeType

The builtin class ‘type’

theUnicodeType

The builtin class for unicode. unicode in Python2, str in Python3

Classes

ClassObject

A class whose instances represents Python classes. Instances of this class represent either builtin classes such as list or str, or program-defined Python classes present in the source code.

ObjectOrCfg