]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38013: make async_generator_athrow object tolerant to throwing exceptions (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 17 Sep 2019 13:19:25 +0000 (06:19 -0700)
committerGitHub <noreply@github.com>
Tue, 17 Sep 2019 13:19:25 +0000 (06:19 -0700)
commitfc022f04b41a79cacdff380435c30c8042c82b99
treee815829f2864532367e738add45e3a9c47077c77
parent6591b4bbb1c0b9c26b99e4b2dba1e5cc8546732d
bpo-38013: make async_generator_athrow object tolerant to throwing exceptions (GH-16070)

Even when the helper is not started yet.

This behavior follows conventional generator one.
There is no reason for `async_generator_athrow` to handle `gen.throw()` differently.

https://bugs.python.org/issue38013
(cherry picked from commit c275312a6284bd319ea33c9abd7e15c230eca43f)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Lib/test/test_asyncgen.py
Misc/NEWS.d/next/Core and Builtins/2019-09-12-19-50-01.bpo-38013.I7btD0.rst [new file with mode: 0644]
Objects/genobject.c