Module python
Import path
import pythonPredicates
| 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 |
| name_consts | Holds if |
| nested_sequence_assign |
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 |
| Annotation | An annotation, such as the |
| 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 |
| Break | A break statement |
| Break_ | INTERNAL: See the class |
| 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 |
| 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 | |
| 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 |
| FunctionLocalVariable | |
| FunctionParent | The parent of a |
| FunctionParent_ | INTERNAL: See the class |
| 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 |
| 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 |
| JoinedTemplateString | An (implicitly) concatenated list of template strings. |
| JoinedTemplateString_ | INTERNAL: See the class |
| 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 |
| 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 |
| 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. |
| 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 | |
| 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 |
| Operator | The base class for operators |
| Operator_ | INTERNAL: See the class |
| Or | An |
| Or_ | INTERNAL: See the class |
| 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 |
| PyEdgeRefinement | A Python specific sub-class of generic EssaEdgeRefinement |
| 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 |
| Repr | A repr (backticks) expression, such as |
| Repr_ | INTERNAL: See the class |
| 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 |
| SelfCallsiteRefinement | An implicit (possible) modification of |
| SequenceNode | A control flow node corresponding to a sequence (tuple or list) literal |
| 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 |
| 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. |
| 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 |
| 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 |
| 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 |
| TemplateString | A template string literal. |
| TemplateStringList | A list of template strings. |
| TemplateStringList_ | INTERNAL: See the class |
| TemplateStringPart_ | INTERNAL: See the class |
| TemplateString_ | 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 |
| 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. |
| Variable | A variable, either a global or local variable (including parameters) |
| VariableParent_ | INTERNAL: See the class |
| 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 |