inspect.getgeneratorstate()

inspect.getgeneratorstate(generator)

Get current state of a generator-iterator.

Possible states are:
  • GEN_CREATED: Waiting to start execution.
  • GEN_RUNNING: Currently being executed by the interpreter.
  • GEN_SUSPENDED: Currently suspended at a yield expression.
  • GEN_CLOSED: Execution has completed.

New in version 3.2.

doc_python
2016-10-07 17:35:00
Comments
Leave a Comment

Please login to continue.