PyDocs

Nav

Python Language Services

Interactive

ast

class
  • Interactive(body)
Interactive(stmt* body)
1 Example
>>> print(ast.dump(ast.parse('x = 1; y = 2', mode='single'), indent=4))
Interactive(
    body=[
        Assign(
            targets=[
                Name(id='x', ctx=Store())],
            value=Constant(value=1)),
        Assign(
            targets=[
                Name(id='y', ctx=Store())],
            value=Constant(value=2))])
from the Python docs
See Also
No see-alsos for ast/Interactive
0 Notes
No notes for Interactive