Unparser#
- class langchain_community.tools.e2b_data_analysis.unparse.Unparser(tree, file=sys.stdout)[source]#
Traverse an AST and output source code for the abstract syntax; original formatting is disregarded.
Print the source for tree to file.
Attributes
binop
boolops
cmpops
unop
Methods
__init__
(tree[,Β file])Unparser(tree, file=sys.stdout) -> None.
dispatch
(tree)Dispatcher function, dispatching tree type T to method _T.
enter
()Print ':', and increase the indentation.
fill
([text])Indent a piece of text, according to the current indentation level
leave
()Decrease the indentation level.
write
(text)Append a piece of text to the current line.