[issue42760] inspect.iscoroutine returns False for asynchronous generator functions

2020-12-30 Thread Paolo Lammens
Change by Paolo Lammens : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue42760] inspect.iscoroutine returns False for asynchronous generator functions

2020-12-27 Thread Paolo Lammens
New submission from Paolo Lammens : The `inspect.iscoroutinefunction` and `inspect.iscoroutine` functions return `False` for the `asend`, `athrow` and `aclose` methods of asynchronous generators (PEP 525). These are coroutine functions (i.e. one does e.g. `await gen.asend(value)`) so I would