Home
/
Python 3.11
/
Inspect
/
isgeneratorfunction
Python 3.0
Python 3.9
Python 3.11
Functions
ID
EN
…
Inspect
isgeneratorfunction
Python 3.11
Return True if the object is a Python generator function.
Syntax
PYTHON
Copy
inspect.isgeneratorfunction(object)
See Also
functools.partial()