Commit c8bb467f authored by Andrés Delfino's avatar Andrés Delfino Committed by Andrew Svetlov

Update compound_stmts.rst (#9864)

parent b11c5667
...@@ -765,8 +765,8 @@ Is semantically equivalent to:: ...@@ -765,8 +765,8 @@ Is semantically equivalent to::
See also :meth:`__aiter__` and :meth:`__anext__` for details. See also :meth:`__aiter__` and :meth:`__anext__` for details.
It is a :exc:`SyntaxError` to use ``async for`` statement outside of an It is a :exc:`SyntaxError` to use an ``async for`` statement outside of a
:keyword:`async def` function. coroutine.
.. index:: statement: async with .. index:: statement: async with
...@@ -803,8 +803,8 @@ Is semantically equivalent to:: ...@@ -803,8 +803,8 @@ Is semantically equivalent to::
See also :meth:`__aenter__` and :meth:`__aexit__` for details. See also :meth:`__aenter__` and :meth:`__aexit__` for details.
It is a :exc:`SyntaxError` to use ``async with`` statement outside of an It is a :exc:`SyntaxError` to use an ``async with`` statement outside of a
:keyword:`async def` function. coroutine.
.. seealso:: .. seealso::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment