(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/AST Errors.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/module-parser.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/AST Examples.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/genindex.html| ]]
|
Previous: 17.1.4 Exceptions and Error Up: 17.1 parser Next: 17.1.6 Examples
17.1.5 AST Objects
Ordered and equality comparisons are supported between AST objects. Pickling of AST objects (using the pickle module) is also supported.
- ASTType
- The type of the objects returned by expr(), suite() and sequence2ast().
AST objects have the following methods:
- compile ([filename])
- Same as
compileast(ast, filename).
- isexpr ()
- Same as
isexpr(ast).
- issuite ()
- Same as
issuite(ast).
- tolist ([line_info])
- Same as
ast2list(ast, line_info).
- totuple ([line_info])
- Same as
ast2tuple(ast, line_info).
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/AST Errors.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/module-parser.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/AST Examples.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/genindex.html| ]]
|
Previous: 17.1.4 Exceptions and Error Up: 17.1 parser Next: 17.1.6 Examples
See About this document... for information on suggesting changes.