diff options
author | Raymond Hettinger <python@rcn.com> | 2010-12-16 00:30:53 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2010-12-16 00:30:53 (GMT) |
commit | 48f3bd331cd798ba0aa0061713aead0466c0b970 (patch) | |
tree | 24e2cf98ba9a8c8a40f0a1e54fb657976d311f3d /Doc/library/inspect.rst | |
parent | 055d2e0da4d8a2cb40d84fa99ceda85443680e9c (diff) | |
download | cpython-48f3bd331cd798ba0aa0061713aead0466c0b970.zip cpython-48f3bd331cd798ba0aa0061713aead0466c0b970.tar.gz cpython-48f3bd331cd798ba0aa0061713aead0466c0b970.tar.bz2 |
Nits
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r-- | Doc/library/inspect.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 4845bca..a95e16f 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -630,17 +630,17 @@ Current State of a Generator When implementing coroutine schedulers and for other advanced uses of generators, it is useful to determine whether a generator is currently executing, is waiting to start or resume or execution, or has already -terminated. func:`getgeneratorstate` allows the current state of a +terminated. :func:`getgeneratorstate` allows the current state of a generator to be determined easily. .. function:: getgeneratorstate(generator) - Get current state of a generator-iterator. + 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. + 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. .. versionadded:: 3.2 |