[issue35409] Async generator might re-throw GeneratorExit on aclose()

2020-08-29 Thread Spencer Baugh
Spencer Baugh added the comment: My mistake, I see now this is just https://bugs.python.org/issue33786 and is already fixed. -- ___ Python tracker <https://bugs.python.org/issue35

[issue35409] Async generator might re-throw GeneratorExit on aclose()

2020-08-29 Thread Spencer Baugh
Spencer Baugh added the comment: I'm not sure this was the correct fix - or at least, this creates further issues with asynccontextmanager. Consider the following code: --- import contextlib import types @contextlib.asynccontextmanager async def acm(): # GeneratorExit