diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2010-11-21 03:44:04 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2010-11-21 03:44:04 (GMT) |
commit | e0f04659cd717a031b42dcfd43ca07824b24f9b2 (patch) | |
tree | 63fbd71f11a93bb398b5d1f6c2d91b116bc7d78e /Doc/whatsnew/3.2.rst | |
parent | d3309df40b5335ebf225a359e5cb3b324801e221 (diff) | |
download | cpython-e0f04659cd717a031b42dcfd43ca07824b24f9b2.zip cpython-e0f04659cd717a031b42dcfd43ca07824b24f9b2.tar.gz cpython-e0f04659cd717a031b42dcfd43ca07824b24f9b2.tar.bz2 |
Issue #10220: Add inspect.getgeneratorstate(). Initial patch by Rodolpho Eckhardt
Diffstat (limited to 'Doc/whatsnew/3.2.rst')
-rw-r--r-- | Doc/whatsnew/3.2.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index 1bad544..dd47129 100644 --- a/Doc/whatsnew/3.2.rst +++ b/Doc/whatsnew/3.2.rst @@ -554,6 +554,14 @@ New, Improved, and Deprecated Modules (Contributed by R. David Murray, :issue:`10321`.) +* The :mod:`inspect` module has a new function :func:`getgenatorstate` + to easily identify the current state of a generator as one of + ``GEN_CREATED``, ``GEN_RUNNING``, ``GEN_SUSPENDED`` or ``GEN_CLOSED``. + + (Contributed by Rodolpho Eckhardt and Nick Coghlan, :issue:`10220`.) + +.. XXX: Mention inspect.getattr_static (Michael Foord) + Multi-threading =============== |