Message327039
isfunction() processes both `isfunction(func)` and `isfunction(partial(func, arg))` correctly.
But `iscoroutinefunction()` misses this functionality.
We can implement it easy by adding a check for `isinstance(func, partial)` and applying a coroutine check for `func.func`.
Also, we can do the same for `isgeneratorfunction()` and `isasyncgenfunction()`.
The patch looks easy and straightforward.
Yuri, what do you think about? |
|
Date |
User |
Action |
Args |
2018-10-04 07:29:56 | asvetlov | set | recipients:
+ asvetlov, yselivanov |
2018-10-04 07:29:56 | asvetlov | set | messageid: <1538638196.31.0.545547206417.issue34890@psf.upfronthosting.co.za> |
2018-10-04 07:29:56 | asvetlov | link | issue34890 messages |
2018-10-04 07:29:56 | asvetlov | create | |
|