Arithmetic evaluation: Difference between revisions
Content added Content deleted
(error examples) |
|||
Line 1,840: | Line 1,840: | ||
===ast standard library module=== |
===ast standard library module=== |
||
Python comes with its own [http://docs.python.org/3.1/library/ast.html#module-ast ast] module as part of its standard libraries. The module compiles Python source into an AST tree that can in turn be compiled |
Python comes with its own [http://docs.python.org/3.1/library/ast.html#module-ast ast] module as part of its standard libraries. The module compiles Python source into an AST tree that can in turn be compiled to bytecode then executed. |
||
<lang python>>>> import ast |
<lang python>>>> import ast |
||
>>> |
>>> |