summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2012-06-23 09:52:05 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2012-06-23 09:52:05 (GMT)
commit04e2e3f2310964bb353cc85e4ebedf2391109118 (patch)
tree9fa80195784e0db02237898ebc272c5d23971a69 /Doc/whatsnew
parent766e62266e72d7586e8cbf74213a3935a974ef14 (diff)
downloadcpython-04e2e3f2310964bb353cc85e4ebedf2391109118.zip
cpython-04e2e3f2310964bb353cc85e4ebedf2391109118.tar.gz
cpython-04e2e3f2310964bb353cc85e4ebedf2391109118.tar.bz2
Close #15153: Added inspect.getgeneratorlocals to simplify whitebox testing of generator state updates
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.3.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
index 592f9c9..c6225c3 100644
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -1037,6 +1037,13 @@ state when testing code that relies on stateful closures.
(Contributed by Meador Inge and Nick Coghlan in :issue:`13062`)
+A new :func:`~inspect.getgeneratorlocals` function has been added. This
+function reports the current binding of local variables in the generator's
+stack frame, making it easier to verify correct internal state when testing
+generators.
+
+(Contributed by Meador Inge in :issue:`15153`)
+
io
--