A Python module, as with :ref:`file input <file-input>`.
Node type generated by :func:`ast.parse` in the default ``"exec"`` *mode*.
- *body* is a :class:`list` of the module's :ref:`ast-statements`.
+ ``body`` is a :class:`list` of the module's :ref:`ast-statements`.
- *type_ignores* is a :class:`list` of the module's type ignore comments;
+ ``type_ignores`` is a :class:`list` of the module's type ignore comments;
see :func:`ast.parse` for more details.
.. doctest::
A single Python :ref:`expression input <expression-input>`.
Node type generated by :func:`ast.parse` when *mode* is ``"eval"``.
- *body* is a single node,
+ ``body`` is a single node,
one of the :ref:`expression types <ast-expressions>`.
.. doctest::
A single :ref:`interactive input <interactive>`, like in :ref:`tut-interac`.
Node type generated by :func:`ast.parse` when *mode* is ``"single"``.
- *body* is a :class:`list` of :ref:`statement nodes <ast-statements>`.
+ ``body`` is a :class:`list` of :ref:`statement nodes <ast-statements>`.
.. doctest::
# type: (int, int) -> int
return a + b
- *argtypes* is a :class:`list` of :ref:`expression nodes <ast-expressions>`.
+ ``argtypes`` is a :class:`list` of :ref:`expression nodes <ast-expressions>`.
- *returns* is a single :ref:`expression node <ast-expressions>`.
+ ``returns`` is a single :ref:`expression node <ast-expressions>`.
.. doctest::