Module python
Import path
import python
Predicates
attribute_assigned_in_method | |
class_declares_attribute | Holds if this class (not on a super-class) declares name |
globallyDefinedName | Whether this name is (almost) always defined, ie. it is a builtin or VM defined name |
import_from_dot_in_init | Holds if |
isPreferredModuleForName | Holds if the Container |
legalShortName | |
major_version | the Python major version number |
micro_version | the Python micro version number |
minor_version | the Python minor version number |
moduleNameFromFile | Gets the name of the module that |
nested_sequence_assign | |
non_coupling_method | |
object_for_string | Primarily for internal use. |
scope_raises | INTERNAL – Use FunctionObject.getARaisedType() instead |
scope_raises_objectapi | INTERNAL – Use FunctionObject.getARaisedType() instead |
scope_raises_unknown | INTERNAL – Use FunctionObject.raisesUnknownType() instead |
test_contains | Hold if |
theAbcMetaClassObject | |
theAttributeErrorType | Gets the builtin class ‘AttributeError’ |
theBaseExceptionType | Gets the builtin class ‘BaseException’ |
theBoolType | Gets the built-in class ‘bool’ |
theBoundMethodType | Gets the builtin class of bound methods |
theBuiltinFunctionType | Gets the class of builtin-functions |
theBuiltinModuleObject | Gets the |
theBuiltinPropertyType | Gets the class of builtin properties |
theBytesType | Gets the builtin class for bytes. str in Python2, bytes in Python3 |
theClassMethodType | Gets the builtin class ‘classmethod’ |
theClassType | Gets the builtin object ClassType (for old-style classes) |
theComplexType | Gets the builtin class ‘complex’ |
theDictType | Gets the builtin class ‘dict’ |
theExceptionType | Gets the builtin class ‘Exception’ |
theFalseObject | Gets the built-in object False |
theFloatType | Gets the builtin class ‘float’ |
theGeneratorType | Gets the class of generators |
theGetSetDescriptorType | Gets the builtin class of builtin properties |
theIOErrorType | Gets the builtin class ‘IOError’ |
theIndexErrorType | Gets the IndexError class |
theInstanceType | Gets the builtin object InstanceType (for old-style classes) |
theIntType | Gets the builtin class ‘int’ |
theKeyErrorType | Gets the builtin class ‘KeyError’ |
theListType | Gets the builtin class ‘list’ |
theLongType | Gets the builtin class ‘long’ (Python 2 only) |
theLookupErrorType | Gets the LookupError class |
theMethodDescriptorType | Gets the method descriptor class |
theModuleType | Gets the class of modules |
theNameErrorType | Gets the NameError class |
theNoneObject | Gets the built-in object None |
theNoneType | Gets the built-in class NoneType |
theNotImplementedErrorType | Gets the builtin class ‘NotImplementedError’ |
theObjectType | Gets the builtin class ‘object’ |
thePropertyType | Gets the builtin class ‘property’ |
thePyFunctionType | Gets the class of Python functions |
theRangeType | Gets the builtin class ‘(x)range’ |
theSetType | Gets the builtin class ‘set’ |
theStandardErrorType | Gets the StandardError class |
theStaticMethodType | Gets the builtin class ‘staticmethod’ |
theStopIterationType | Gets the builtin class ‘StopIteration’ |
theStrType | Gets the ‘str’ class. This is the same as the ‘bytes’ class for Python 2 and the ‘unicode’ class for Python 3 |
theSuperType | Gets the builtin class ‘super’ |
theSysModuleObject | Gets the |
theTrueObject | Gets the built-in object True |
theTupleType | Gets the builtin class ‘tuple’ |
theTypeErrorType | Gets the builtin class ‘TypeError’ |
theTypeType | Gets the builtin class ‘type’ |
theUnicodeType | Gets the builtin class for unicode. unicode in Python2, str in Python3 |
theUnknownType | |
undefinedVariable | Gets the pseudo-object representing the value referred to by an undefined variable |
unique_root_method | Helpers for coupling |
unknownValue | Gets the pseudo-object representing an unknown value |
Classes
Add | An add ( |
Add_ | INTERNAL: See the class |
Alias | An alias in an import statement, the |
AliasList | A list of aliases in an import statement |
AliasList_ | INTERNAL: See the class |
Alias_ | INTERNAL: See the class |
And | An |
And_ | INTERNAL: See the class |
AnnAssign | An annotated assignment statement, such as |
AnnAssign_ | INTERNAL: See the class |
ArgumentRefinement | A use of a variable as an argument, |
Arguments | The default values and annotations (type hints) for the arguments in a function definition. |
ArgumentsParent | The parent of an |
ArgumentsParent_ | INTERNAL: See the class |
Arguments_ | INTERNAL: See the class |
Assert | An assert statement, such as |
Assert_ | INTERNAL: See the class |
Assign | A statement that includes a binding (except imports) |
AssignExpr | An assignment expression, such as |
AssignExpr_ | INTERNAL: See the class |
AssignStmt | An assignment statement |
Assign_ | INTERNAL: See the class |
AssignmentDefinition | An assignment to a variable |
AssignmentExprNode | A control flow node corresponding to an assignment expression such as |
AstNode | A syntactic node (Class, Function, Module, Expr, Stmt or Comprehension) corresponding to a flow node |
AstNode_ | INTERNAL: See the class |
AsyncFor | An asynchronous |
AsyncWith | An asynchronous |
AttrNode | A control flow corresponding to an attribute expression, such as |
Attribute | An attribute expression, such as |
AttributeAssignment | An assignment of an attribute |
Attribute_ | INTERNAL: See the class |
AugAssign | An augmented assignment statement, such as |
AugAssign_ | INTERNAL: See the class |
AugLoad | The context of an augmented load. This is an artifact of the Python grammar which includes an AugLoad context, even though it is never used. |
AugLoad_ | INTERNAL: See the class |
AugStore | The augmented store context, the context of var in var += 1 |
AugStore_ | INTERNAL: See the class |
Await | An await expression such as |
Await_ | INTERNAL: See the class |
BasicBlock | A basic block (ignoring exceptional flow edges to scope exit) |
BinaryExpr | A binary expression, such as |
BinaryExprNode | A control flow node corresponding to a binary expression, such as |
BinaryExpr_ | INTERNAL: See the class |
BitAnd | A bitwise and ( |
BitAnd_ | INTERNAL: See the class |
BitOr | A bitwise or ( |
BitOr_ | INTERNAL: See the class |
BitXor | A bitwise exclusive-or ( |
BitXor_ | INTERNAL: See the class |
BoolExpr | A boolean shortcut (and/or) operation |
BoolExprNode | A control flow node corresponding to a boolean shortcut (and/or) operation |
BoolExpr_ | INTERNAL: See the class |
BoolParent_ | INTERNAL: See the class |
BooleanLiteral | A boolean named constant, either |
Boolop | A short circuit boolean operator, and/or |
Boolop_ | INTERNAL: See the class |
BoundMethodValue | A bound-method, such as |
Break | A break statement |
Break_ | INTERNAL: See the class |
BuiltinCallable | |
BuiltinFunctionObject | |
BuiltinFunctionValue | A builtin function, such as |
BuiltinMethodObject | |
BuiltinMethodValue | A builtin method, such as |
BuiltinModuleObject | |
BuiltinPropertyObject | |
BuiltinVariable | |
Bytes | A bytes constant, such as |
BytesOrStr | |
BytesOrStr_ | INTERNAL: See the class |
Bytes_ | INTERNAL: See the class |
Call | A call expression, such as |
CallNode | A control flow node corresponding to a call expression, such as |
Call_ | INTERNAL: See the class |
CallableExpr | An expression that generates a callable object, either a function expression or a lambda |
CallableValue | A callable in the Python program. Callables include Python functions, built-in functions and bound-methods, but not classes. |
CallsiteRefinement | An implicit (possible) definition of an escaping variable at a call-site |
Case | A case statement |
Case_ | INTERNAL: See the class |
Class | The scope of a class. This is the scope of all the statements within the class definition |
ClassDef | A class statement. Note that ClassDef extends Assign as a class definition binds the newly created class |
ClassExpr | An (artificial) expression corresponding to a class definition. It is recommended to use |
ClassExpr_ | INTERNAL: See the class |
ClassLocalVariable | |
ClassMethodObject | A class method object. Either a decorated function or an explicit call to classmethod(f) |
ClassMetrics | The metrics for a class |
ClassObject | A class whose instances represents Python classes. Instances of this class represent either builtin classes such as |
ClassValue | A class in the Python program, both Python and built-in. |
Class_ | INTERNAL: See the class |
Cmpop | A comparison operator |
CmpopList | A list of comparison operators in a comparison |
CmpopList_ | INTERNAL: See the class |
Cmpop_ | INTERNAL: See the class |
Comment | A source code comment |
CommentBlock | A block of consecutive comments |
Comp | The base class for list, set and dictionary comprehensions, and generator expressions. |
Compare | A comparison operation, such as |
CompareNode | A control flow node corresponding to a comparison operation, such as |
Compare_ | INTERNAL: See the class |
Comprehension | A comprehension part, the ‘for a in seq’ part of [ a * a for a in seq ] |
ComprehensionList | A list of Comprehensions (for generating parts of a set, list or dictionary comprehension) |
ComprehensionList_ | INTERNAL: See the class |
Comprehension_ | INTERNAL: See the class |
ConditionBlock | A basic block which terminates in a condition, splitting the subsequent control flow |
Container | A container is an abstract representation of a file system object that can hold elements of interest. |
Continue | A continue statement |
Continue_ | INTERNAL: See the class |
ControlFlowNode | A control flow node. Control flow nodes have a many-to-one relation with syntactic nodes, although most syntactic nodes have only one corresponding control flow node. Edges between control flow nodes include exceptional as well as normal control flow. |
DefinitionNode | A control flow node corresponding to a definition, that is a control flow node where a value is assigned to this node. Includes control flow nodes for the targets of assignments, simple or augmented, and nodes implicitly assigned in class and function definitions and imports. |
Del | The delete context, the context of var in del var |
Del_ | INTERNAL: See the class |
Delete | A delete statement, such as |
Delete_ | INTERNAL: See the class |
DeletionDefinition | A deletion of a variable |
DeletionNode | A control flow node corresponding to a deletion statement, such as |
Dict | A dictionary expression, such as |
DictComp | A dictionary comprehension, such as |
DictComp_ | INTERNAL: See the class |
DictDisplayItem | |
DictItem | |
DictItemList | |
DictItemListParent | |
DictItemListParent_ | INTERNAL: See the class |
DictItemList_ | INTERNAL: See the class |
DictItem_ | INTERNAL: See the class |
DictNode | A control flow node corresponding to a dictionary literal, such as |
DictUnpacking | A double-starred expression in a call or dict literal. |
DictUnpackingOrKeyword | |
DictUnpacking_ | INTERNAL: See the class |
Dict_ | INTERNAL: See the class |
Div | An (true) divide ( |
Div_ | INTERNAL: See the class |
Ellipsis | An ellipsis expression, such as |
Ellipsis_ | INTERNAL: See the class |
EncodingError | An encoding error. Note that if there is an encoding error in a module, much information about that module will be lost |
Eq | An equals ( |
Eq_ | INTERNAL: See the class |
EscapingAssignmentGlobalVariable | |
EscapingGlobalVariable | |
EssaAttributeDeletion | A deletion of an attribute |
EssaDefinition | A definition of an extended-SSA (ESSA) variable. There is exactly one definition for each variable, and exactly one variable for each definition. |
EssaEdgeRefinement | An ESSA definition corresponding to an edge refinement of the underlying variable. For example, the edges leaving a test on a variable both represent refinements of that variable. On one edge the test is true, on the other it is false. |
EssaNodeDefinition | A definition of an ESSA variable that is not directly linked to another ESSA variable. |
EssaNodeRefinement | A definition of an ESSA variable that takes another ESSA variable as an input. |
EssaVariable | An (enhanced) SSA variable derived from |
ExceptFlowNode | The ControlFlowNode for an ‘except’ statement. |
ExceptGroupFlowNode | The ControlFlowNode for an ‘except*’ statement. |
ExceptGroupStmt | An except group statement (part of a |
ExceptGroupStmt_ | INTERNAL: See the class |
ExceptStmt | An except statement (part of a |
ExceptStmt_ | INTERNAL: See the class |
ExceptionCapture | A capture of a raised exception |
ExceptionGroupCapture | A capture of a raised exception group |
ExceptionHandler | An exception handler such as an |
Exec | An exec statement |
Exec_ | INTERNAL: See the class |
Expr | An expression |
ExprContext | A context in which an expression used |
ExprContextParent | The parent of an |
ExprContextParent_ | INTERNAL: See the class |
ExprContext_ | INTERNAL: See the class |
ExprList | A list of expressions |
ExprListParent | The parent of an |
ExprListParent_ | INTERNAL: See the class |
ExprList_ | INTERNAL: See the class |
ExprOrStmt_ | INTERNAL: See the class |
ExprParent | The parent of an |
ExprParent_ | INTERNAL: See the class |
ExprStmt | An expression statement, such as |
ExprStmt_ | INTERNAL: See the class |
Expr_ | INTERNAL: See the class |
False | The boolean named constant |
FastLocalVariable | A local variable that uses “load fast” semantics, for lookup: If the variable is undefined, then raise an exception. |
FastLocalsFunction | A function that uses ‘fast’ locals, stored in the frame not in a dictionary. |
File | A file |
Filter | |
Filter_ | INTERNAL: See the class |
FloatLiteral | A floating point numeric constant, such as |
FloorDiv | An floor divide ( |
FloorDiv_ | INTERNAL: See the class |
Folder | A folder (directory) |
For | A for statement, such as |
ForNode | A flow node for a |
For_ | INTERNAL: See the class |
FormattedValue | A formatted value (within a formatted string literal). For example, in the string |
FormattedValue_ | INTERNAL: See the class |
Fstring | A formatted string literal expression, such as |
Fstring_ | INTERNAL: See the class |
Function | A function, independent of defaults and binding. It is the syntactic entity that is compiled to a code object. |
FunctionDef | A def statement. Note that FunctionDef extends Assign as a function definition binds the newly created function |
FunctionExpr | An (artificial) expression corresponding to a function definition. |
FunctionExpr_ | INTERNAL: See the class |
FunctionInvocation | A function invocation. |
FunctionLocalVariable | |
FunctionMetrics | The metrics for a function |
FunctionObject | A function object, whether written in Python or builtin |
FunctionParent | The parent of a |
FunctionParent_ | INTERNAL: See the class |
FunctionValue | A function in the Python program, both Python and built-in. Note that this does not include other callables such as bound-methods. |
Function_ | INTERNAL: See the class |
GeneratorExp | A generator expression, such as |
GeneratorExp_ | INTERNAL: See the class |
Global | A global statement, such as |
GlobalSsaVariable | An SSA variable that is backed by a global variable |
GlobalVariable | A global (module-level) variable |
Global_ | INTERNAL: See the class |
Gt | A greater than ( |
GtE | A greater than or equals ( |
GtE_ | INTERNAL: See the class |
Gt_ | INTERNAL: See the class |
Guard | A guard in a case statement |
Guard_ | INTERNAL: See the class |
If | An if statement, such as |
IfExp | A conditional expression such as, |
IfExp_ | INTERNAL: See the class |
IfExprNode | A control flow node corresponding to a conditional expression such as, |
If_ | INTERNAL: See the class |
ImaginaryLiteral | An imaginary numeric constant, such as |
ImmutableLiteral | An immutable literal expression (except tuples). Consists of string (both unicode and byte) literals and numeric literals. |
ImplicitSubModuleDefinition | An implicit definition of the names of sub-modules in a package. Although the interpreter does not pre-define these names, merely populating them as they are imported, this is a good approximation for static analysis. |
Import | An import statement |
ImportExpr | An artificial expression representing an import |
ImportExprNode | A control flow node corresponding to an artificial expression representing an import |
ImportExpr_ | INTERNAL: See the class |
ImportMember | A |
ImportMemberNode | A control flow node corresponding to a |
ImportMember_ | INTERNAL: See the class |
ImportStar | An import * statement |
ImportStarNode | A control flow node corresponding to a |
ImportStarRefinement | A possible redefinition of variable via |
ImportStar_ | INTERNAL: See the class |
ImportTimeScope | An ImportTimeScope is any scope that is not nested within a function and will thus be executed if its enclosing module is imported. Note however, that if a scope is not an ImportTimeScope it may still be executed at import time. This is an artificial approximation, which is necessary for static analysis. |
Import_ | INTERNAL: See the class |
ImportingStmt | A statement that imports a module. This can be any statement that includes the |
In | An |
In_ | INTERNAL: See the class |
IntegerLiteral | An integer numeric constant, such as |
Invert | An invert ( |
Invert_ | INTERNAL: See the class |
Is | An |
IsNot | An |
IsNot_ | INTERNAL: See the class |
Is_ | INTERNAL: See the class |
IterableNode | A control flow node corresponding to an iterable literal. Currently does not include dictionaries, use |
KeyValuePair | |
KeyValuePair_ | INTERNAL: See the class |
Keyword | A keyword argument in a call. For example |
Keyword_ | INTERNAL: See the class |
LShift | A left shift ( |
LShift_ | INTERNAL: See the class |
Lambda | A lambda expression, such as |
Lambda_ | INTERNAL: See the class |
Line | A non-empty line in the source code |
List | A list expression, such as |
ListComp | A list comprehension, such as |
ListComp_ | INTERNAL: See the class |
ListNode | A control flow node corresponding to a list expression, such as |
ListObject | |
List_ | INTERNAL: See the class |
Load | The load context, the context of var in len(var) |
Load_ | INTERNAL: See the class |
LocalVariable | A local (function or class) variable |
Location | |
LocationParent_ | INTERNAL: See the class |
Lt | A less than ( |
LtE | A less than or equals ( |
LtE_ | INTERNAL: See the class |
Lt_ | INTERNAL: See the class |
MRO | A method-resolution-order sequence of classes |
MatMult | A matrix multiplication ( |
MatMult_ | INTERNAL: See the class |
MatchAsPattern | An as-pattern in a match statement: |
MatchAsPattern_ | INTERNAL: See the class |
MatchCapturePattern | A capture pattern in a match statement: |
MatchCapturePattern_ | INTERNAL: See the class |
MatchClassPattern | A class pattern in a match statement: |
MatchClassPattern_ | INTERNAL: See the class |
MatchDoubleStarPattern | A double star pattern in a match statement: |
MatchDoubleStarPattern_ | INTERNAL: See the class |
MatchKeyValuePattern | A key-value pattern inside a mapping pattern: |
MatchKeyValuePattern_ | INTERNAL: See the class |
MatchKeywordPattern | A keyword pattern inside a class pattern: |
MatchKeywordPattern_ | INTERNAL: See the class |
MatchLiteralPattern | A literal pattern in a match statement: |
MatchLiteralPattern_ | INTERNAL: See the class |
MatchMappingPattern | A mapping pattern in a match statement: |
MatchMappingPattern_ | INTERNAL: See the class |
MatchOrPattern | An or-pattern in a match statement: |
MatchOrPattern_ | INTERNAL: See the class |
MatchSequencePattern | A sequence pattern in a match statement |
MatchSequencePattern_ | INTERNAL: See the class |
MatchStarPattern | A star pattern in a match statement: |
MatchStarPattern_ | INTERNAL: See the class |
MatchStmt | A match statement |
MatchStmt_ | INTERNAL: See the class |
MatchValuePattern | A value pattern in a match statement: |
MatchValuePattern_ | INTERNAL: See the class |
MatchWildcardPattern | A wildcard pattern in a match statement: |
MatchWildcardPattern_ | INTERNAL: See the class |
MethodCallsiteRefinement | An implicit (possible) modification of the object referred at a method call |
Mod | A modulo ( |
Mod_ | INTERNAL: See the class |
Module | A module. This is the top level element in an AST, corresponding to a source file. It is also a Scope; the scope of global variables. |
ModuleMetrics | |
ModuleObject | |
ModuleValue | A module in the Python program. Each |
ModuleVariable | |
Module_ | INTERNAL: See the class |
Mult | A multiplication ( |
Mult_ | INTERNAL: See the class |
MultiAssignmentDefinition | An assignment to a variable as part of a multiple assignment |
Name | A (plain variable) name expression, such as |
NameConstant | A named constant, one of |
NameConstantNode | A control flow node corresponding to a named constant, one of |
NameLocalVariable | A local variable that uses “load name” semantics, for lookup: If the variable is undefined, then lookup the value in globals(). |
NameNode | A control flow node corresponding to a (plain variable) name expression, such as |
Name_ | INTERNAL: See the class |
NegativeIntegerLiteral | |
NonEmptyTupleObject | |
NonEscapingGlobalVariable | |
NonLocalVariable | |
None | The |
Nonlocal | A nonlocal statement, such as |
Nonlocal_ | INTERNAL: See the class |
Not | A |
NotEq | A not equals ( |
NotEq_ | INTERNAL: See the class |
NotIn | An |
NotIn_ | INTERNAL: See the class |
Not_ | INTERNAL: See the class |
Num | A numerical constant expression, such as |
Num_ | INTERNAL: See the class |
NumericObject | A numeric object (int or float). Includes those occurring in the source as a literal or in a builtin module as a value. |
NumericValue | A class representing numbers (ints and floats), either present in the source as a literal, or in a builtin as a value. |
Object | An object. |
Operator | The base class for operators |
Operator_ | INTERNAL: See the class |
Or | An |
Or_ | INTERNAL: See the class |
PackageObject | |
Param | The parameter context, the context of var in def f(var): pass |
ParamSpec | A param spec parameter, such as |
ParamSpec_ | INTERNAL: See the class |
Param_ | INTERNAL: See the class |
Parameter | A parameter. Either a Tuple or a Name (always a Name for Python 3) |
ParameterDefinition | A definition of a variable by declaring it as a parameter |
ParameterList | A parameter list |
Parameter_ | INTERNAL: See the class |
Pass | A pass statement |
Pass_ | INTERNAL: See the class |
Pattern | A pattern in a match statement |
PatternAliasDefinition | A definition of a variable via a pattern alias |
PatternCaptureDefinition | A definition of a variable via a capture pattern |
PatternList | A list of patterns |
PatternListParent | The parent of a |
PatternListParent_ | INTERNAL: See the class |
PatternList_ | INTERNAL: See the class |
PatternParent | The parent of a |
PatternParent_ | INTERNAL: See the class |
Pattern_ | INTERNAL: See the class |
PhiFunction | A Phi-function as specified in classic SSA form. |
PlaceHolder | |
PlaceHolder_ | INTERNAL: See the class |
Pow | A power ( |
Pow_ | INTERNAL: See the class |
A print statement (Python 2 only), such as | |
Print_ | INTERNAL: See the class |
PropertyObject | A Python property: |
PropertyValue | A Python property: |
PyEdgeRefinement | A Python specific sub-class of generic EssaEdgeRefinement |
PyFunctionObject | |
PythonFunctionValue | A Python function. |
PythonModuleObject | |
PythonPropertyObject | |
RShift | A right shift ( |
RShift_ | INTERNAL: See the class |
Raise | A raise statement, such as |
RaiseStmtNode | A flow node for a |
Raise_ | INTERNAL: See the class |
RaisingNode | The subset of ControlFlowNodes which might raise an exception |
Repr | A repr (backticks) expression, such as |
Repr_ | INTERNAL: See the class |
ReraisingNode | A Reraising node is the node at the end of a finally block (on the exceptional branch) that reraises the current exception. |
Return | A return statement, such as return None |
Return_ | INTERNAL: See the class |
Scope | A Scope. A scope is the lexical extent over which all identifiers with the same name refer to the same variable. Modules, Classes and Functions are all Scopes. There are no other scopes. The scopes for expressions that create new scopes, lambdas and comprehensions, are handled by creating an anonymous Function. |
ScopeEntryDefinition | A definition of variable at the entry of a scope. Usually this represents the transfer of a global or non-local variable from one scope to another. |
Scope_ | INTERNAL: See the class |
SelfAttribute | An attribute access where the left hand side of the attribute expression is |
SelfAttributeRead | A helper class for UndefinedClassAttribute.ql & MaybeUndefinedClassAttribute.ql |
SelfAttributeStore | |
SelfCallsiteRefinement | An implicit (possible) modification of |
SequenceNode | A control flow node corresponding to a sequence (tuple or list) literal |
SequenceObject | A sequence object (list or tuple) Includes those occurring in the source as a literal or in a builtin module as a value. |
SequenceValue | A class representing sequence objects with a length and tracked items. |
Set | A set expression such as |
SetComp | A set comprehension such as |
SetComp_ | INTERNAL: See the class |
SetNode | A control flow node corresponding to a set expression, such as |
Set_ | INTERNAL: See the class |
SingleSuccessorGuard | A pi-node (guard) with only one successor. |
Slice | A slice. E.g |
Slice_ | INTERNAL: See the class |
SpecialOperation_ | INTERNAL: See the class |
SpecialSsaSourceVariable | |
SsaSourceVariable | A source language variable, to be converted into a set of SSA variables. |
SsaVariable | A single static assignment variable. An SSA variable is a variable which is only assigned once (statically). SSA variables can be defined as normal variables or by a phi node which can occur at joins in the flow graph. Definitions without uses do not have a SSA variable. |
Starred | A starred expression, such as the |
StarredNode | A control flow node corresponding to a starred expression, |
Starred_ | INTERNAL: See the class |
StaticMethodObject | A static method object. Either a decorated function or an explicit call to staticmethod(f) |
Stmt | A statement |
StmtList | A list of statements |
StmtListParent | The parent of a |
StmtListParent_ | INTERNAL: See the class |
StmtList_ | INTERNAL: See the class |
Stmt_ | INTERNAL: See the class |
Store | The store context, the context of var in var = 0 |
Store_ | INTERNAL: See the class |
StrListParent | The parent of a |
StrListParent_ | INTERNAL: See the class |
StrParent_ | INTERNAL: See the class |
Str_ | INTERNAL: See the class |
StringList | A list of strings (the primitive type string not Bytes or Unicode) |
StringList_ | INTERNAL: See the class |
StringLiteral | A string constant. |
StringObject | A string object (unicode or bytes). Includes those occurring in the source as a literal or in a builtin module as a value. |
StringPart | A part of a string literal formed by implicit concatenation. For example the string literal “abc” expressed in the source as |
StringPartList | |
StringPartList_ | INTERNAL: See the class |
StringPart_ | INTERNAL: See the class |
StringValue | A class representing strings, either present in the source as a literal, or in a builtin as a value. |
Sub | A subtract ( |
Sub_ | INTERNAL: See the class |
Subscript | A subscript expression, such as |
SubscriptNode | A control flow node corresponding to a subscript expression, such as |
Subscript_ | INTERNAL: See the class |
SuperBoundMethod | |
SyntaxError | A syntax error. Note that if there is a syntax error in a module, much information about that module will be lost |
TemplateDottedNotation_ | INTERNAL: See the class |
TemplateWrite | A plain text used in a template is wrapped in a TemplateWrite statement |
TemplateWrite_ | INTERNAL: See the class |
True | The boolean named constant |
Try | A try statement |
Try_ | INTERNAL: See the class |
Tuple | A tuple expression such as |
TupleNode | A control flow node corresponding to a tuple expression such as |
TupleObject | |
TupleValue | A class representing tuple objects |
Tuple_ | INTERNAL: See the class |
TypeAlias | A type alias statement, such as |
TypeAlias_ | INTERNAL: See the class |
TypeHintComment | A type-hint comment. Any comment that starts with |
TypeParameter | A generic type parameter, as seen in function, class, and type alias definitions. |
TypeParameterList | A list of type parameters |
TypeParameterListParent | A parent of a |
TypeParameterListParent_ | INTERNAL: See the class |
TypeParameterList_ | INTERNAL: See the class |
TypeParameter_ | INTERNAL: See the class |
TypeVar | A type variable, with an optional bound, such as |
TypeVarTuple | A type var tuple parameter, such as |
TypeVarTuple_ | INTERNAL: See the class |
TypeVar_ | INTERNAL: See the class |
UAdd | A positive ( |
UAdd_ | INTERNAL: See the class |
USub | A negation ( |
USub_ | INTERNAL: See the class |
UnaryExpr | A unary expression: ( |
UnaryExprNode | A control flow node corresponding to a unary expression: ( |
UnaryExpr_ | INTERNAL: See the class |
Unaryop | A unary operator: |
Unaryop_ | INTERNAL: See the class |
Unicode | A unicode string expression, such as |
Unit | The trivial type with a single element. |
Value | A value in the Python program. Each |
Variable | A variable, either a global or local variable (including parameters) |
VariableParent_ | INTERNAL: See the class |
Version | A Version of the Python interpreter. Currently only 2.7 or 3.x but may include different sets of versions in the future. |
While | A while statement, such as |
While_ | INTERNAL: See the class |
With | A with statement such as |
WithDefinition | A definition of a variable in a |
With_ | INTERNAL: See the class |
Yield | A yield expression, such as |
YieldFrom | A yield expression, such as |
YieldFrom_ | INTERNAL: See the class |
Yield_ | INTERNAL: See the class |
Modules
BaseFlow | |
ClassValue | |
Module | |
ModuleObject | Utility module for predicates relevant to the |
Object | |
SsaSource | |
TupleObject | |
Value |
Aliases
ClassScope | The scope of a class. This is the scope of all the statements within the class definition |
Context | A points-to context. Context can be one of: * “main”: Used for scripts. * “import”: Use for non-script modules. * “default”: Use for functions and methods without caller context. * All other contexts are call contexts and consist of a pair of call-site and caller context. |
FunctionScope | An alias for Function used for scopes |
ModuleScope | A module. This is the top level element in an AST, corresponding to a source file. It is also a Scope; the scope of global variables. |
ObjectSource | An object. |
Str | DEPRECATED. Use |
StrConst | DEPRECATED. Use |