mirror of
https://github.com/python/cpython
synced 2026-09-28 03:33:18 +03:00
GH-117714: implement athrow().close() and asend().close() using throw (GH-117906)
* GH-117714: replace athrow().close() and asend().close() stubs with implimentations * test athrow().close() and asend().close() raises RuntimeError * 📜🤖 Added by blurb_it. * Update Objects/genobject.c Co-authored-by: Petr Viktorin <encukou@gmail.com> --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
This commit is contained in:
parent
1ff626ebda
commit
e5c699280d
3 changed files with 87 additions and 4 deletions
|
|
@ -0,0 +1 @@
|
|||
update ``async_generator.athrow().close()`` and ``async_generator.asend().close()`` to close their section of the underlying async generator
|
||||
Loading…
Add table
Add a link
Reference in a new issue