Merged revisions 82654 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r82654 | mark.dickinson | 2010-07-08 22:15:36 +0100 (Thu, 08 Jul 2010) | 3 lines
Issue #9136: Profiling Decimal gave 'dictionary changed size during iteration'.
Remove the use of locals() that caused this error.
........
diff --git a/Misc/NEWS b/Misc/NEWS
index a236f60..f358602 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -75,6 +75,10 @@
Library
-------
+- Issue #9136: Fix 'dictionary changed size during iteration'
+ RuntimeError produced when profiling the decimal module. This was
+ due to a dangerous iteration over 'locals()' in Context.__init__.
+
- Fix extreme speed issue in Decimal.pow when the base is an exact
power of 10 and the exponent is tiny (for example,
Decimal(10) ** Decimal('1e-999999999')).