Message288762
Looking at the code: we don't need to use iscoroutinefunction at all. If we had separate methods for sync and async context managers, you can store the flag if a function is async or sync along with it.
So _exit_callbacks should store tuples `(is_async, cb)`, instead of just `cb`.
asyncio.iscoroutinefunction differs from inspect.iscoroutinefunction a little bit to support asyncio-specific debug coroutine wrapper functions. We should avoid using any version of iscoroutinefunction here. |
|
Date |
User |
Action |
Args |
2017-03-01 16:06:16 | yselivanov | set | recipients:
+ yselivanov, gvanrossum, ncoghlan, vstinner, giampaolo.rodola, thehesiod, veky |
2017-03-01 16:06:16 | yselivanov | set | messageid: <1488384376.33.0.709360534789.issue29302@psf.upfronthosting.co.za> |
2017-03-01 16:06:16 | yselivanov | link | issue29302 messages |
2017-03-01 16:06:16 | yselivanov | create | |
|