-
-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Description
Python 3.7 added async/await support to the contextlib module (e.g. asyncontextmanager and AsyncExitStack), and then Python 3.10 added more (e.g. aclosing).
This raised the question of how to backport those features to 3.6+ (the first version with support for yield inside async def).
The answer turned out to be "procrastinate on the question for 4+ years, so it became feasible to simply drop support for Python 3.5 and earlier, and use the async generator code as-is".
(Issue description updated Jun 2021 to describe what actually happened, rather than the more complicated alternatives I was considering to allow adding the new async features without dropping support for Python 3.5 and earlier)
Metadata
Metadata
Assignees
Labels
No labels