HomeAleph Objects Inc

bpo-34890: Make iscoroutinefunction, isgeneratorfunction and isasyncgenfunction…

Authored by Pablo Galindo <Pablogsal@gmail.com> on Oct 26 2018, 5:19 AM.

Description

bpo-34890: Make iscoroutinefunction, isgeneratorfunction and isasyncgenfunction work with functools.partial (GH-9903)

inspect.isfunction() processes both inspect.isfunction(func) and
inspect.isfunction(partial(func, arg)) correctly but some other functions in the
inspect module (iscoroutinefunction, isgeneratorfunction and isasyncgenfunction)
lack this functionality. This commits adds a new check in the mentioned functions
in the inspect module so they can work correctly with arbitrarily nested partial
functions.

Details

Event Timeline

GitHub <noreply@github.com> committed rCP7cd254341648: bpo-34890: Make iscoroutinefunction, isgeneratorfunction and isasyncgenfunction… (authored by Pablo Galindo <Pablogsal@gmail.com>).Oct 26 2018, 5:19 AM