bag.util.parse
This module defines parsing utility methods.
Module Contents
Classes
This node visitor collects all variable names found in the |
Functions
|
Parses the given Python expression and return a list of all variables. |
- class bag.util.parse.ExprVarScanner[source]
Bases:
ast.NodeVisitor
This node visitor collects all variable names found in the AST, and excludes names of functions. Variables having dotted names are not supported.