This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author asvetlov
Recipients asvetlov, yselivanov
Date 2018-10-04.07:29:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1538638196.31.0.545547206417.issue34890@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2018-10-04 07:29:56asvetlovsetrecipients: + asvetlov, yselivanov
2018-10-04 07:29:56asvetlovsetmessageid: <1538638196.31.0.545547206417.issue34890@psf.upfronthosting.co.za>
2018-10-04 07:29:56asvetlovlinkissue34890 messages
2018-10-04 07:29:56asvetlovcreate