]> granicus.if.org Git - python/commit
bpo-38013: make async_generator_athrow object tolerant to throwing exceptions (GH...
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Tue, 17 Sep 2019 12:59:49 +0000 (15:59 +0300)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 17 Sep 2019 12:59:49 +0000 (05:59 -0700)
commitc275312a6284bd319ea33c9abd7e15c230eca43f
tree17639459db0543af603b2bd5f1b7fcc9e02c59e7
parent5f5f11faf9de0d8dcbe1a8a4eb35d2a4232d6eaa
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
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