PyDocs

Nav

Python Language Services

Module

ast

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