diff options
author | Mark Shannon <mark@hotpy.org> | 2021-12-08 12:09:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-08 12:09:26 (GMT) |
commit | 69806b9516dbe092381f3ef884c7c64bb9b8414a (patch) | |
tree | 475262014715b235fa9a122ff09c973d47536f8e /Doc/library | |
parent | 3e0f13b9e48eec8c54a185e4180bfca4e5e685f6 (diff) | |
download | cpython-69806b9516dbe092381f3ef884c7c64bb9b8414a.zip cpython-69806b9516dbe092381f3ef884c7c64bb9b8414a.tar.gz cpython-69806b9516dbe092381f3ef884c7c64bb9b8414a.tar.bz2 |
bpo-46009: Do not exhaust generator when send() method raises (GH-29986)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/dis.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index 62d2150..9665e8d 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -1170,9 +1170,8 @@ All of the following opcodes use their arguments. .. opcode:: GEN_START (kind) - Pops TOS. If TOS was not ``None``, raises an exception. The ``kind`` - operand corresponds to the type of generator or coroutine and determines - the error message. The legal kinds are 0 for generator, 1 for coroutine, + Pops TOS. The ``kind`` operand corresponds to the type of generator or + coroutine. The legal kinds are 0 for generator, 1 for coroutine, and 2 for async generator. .. versionadded:: 3.10 |