summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-07-03 21:25:11 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-07-03 21:25:11 (GMT)
commitac91341333d27bf39dd8b8c1c3164b5bdc19f03b (patch)
tree39cbb66e8f46780439a8ce370a46a92deb1a7d99 /Misc
parent9cf960c94fcd2ec044e1525bb8c51f85c9048f35 (diff)
downloadcpython-ac91341333d27bf39dd8b8c1c3164b5bdc19f03b.zip
cpython-ac91341333d27bf39dd8b8c1c3164b5bdc19f03b.tar.gz
cpython-ac91341333d27bf39dd8b8c1c3164b5bdc19f03b.tar.bz2
never retain a generator's caller's exception state on the generator after a yield/return
This requires some trickery to properly save the exception state if the generator creates its own exception state.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index d763e0f..250acc2 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,9 @@ What's New in Python 3.2.2?
Core and Builtins
-----------------
+- When a generator yields, do not retain the caller's exception state on the
+ generator.
+
- Issue #12475: Prevent generators from leaking their exception state into the
caller's frame as they return for the last time.