diff -r 45713818fd81 Doc/library/inspect.rst --- a/Doc/library/inspect.rst Thu Nov 24 23:31:59 2016 +0100 +++ b/Doc/library/inspect.rst Thu Nov 24 23:36:38 2016 -0800 @@ -299,6 +299,23 @@ .. versionadded:: 3.5 +.. function:: isasyncgenfunction(object) + + Return true if the object is an asynchronous generator function. + + Asynchronous generator functions are defined with :keyword:`async def` + syntax and have ``yield`` expressions in their body. + + .. versionadded:: 3.6 + + +.. function:: isasyncgen(object) + + Return true if the object is an asynchronous generator. + + .. versionadded:: 3.6 + + .. function:: isawaitable(object) Return true if the object can be used in :keyword:`await` expression.