summaryrefslogtreecommitdiffstats
path: root/Doc/library/dis.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/dis.rst')
-rw-r--r--Doc/library/dis.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 836c4c1..7a214ed 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -516,12 +516,14 @@ the original TOS1.
Implements ``del TOS1[TOS]``.
-**Coroutines opcodes**
+**Coroutine opcodes**
.. opcode:: GET_AWAITABLE
- Implements ``TOS = get_awaitable(TOS)``; where ``get_awaitable(o)``
- returns ``o`` if ``o`` is a coroutine object; or resolved ``o.__await__``.
+ Implements ``TOS = get_awaitable(TOS)``, where ``get_awaitable(o)``
+ returns ``o`` if ``o`` is a coroutine object or a generator object with
+ the CO_ITERABLE_COROUTINE flag, or resolves
+ ``o.__await__``.
.. opcode:: GET_AITER