]> granicus.if.org Git - python/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:20:06 +0000 (06:20 -0700)
committerGitHub <noreply@github.com>
Tue, 17 Sep 2019 13:20:06 +0000 (06:20 -0700)
commit3c1786f18b1542e71454f37e3f3ca1ef3eec0e5f
treee7ff720f3ea5d59688c1b17350067309fe2121f3
parent5f1590d5e679f4dd0b611ef54ae512f137e78f1b
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