summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-05-25 13:13:44 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-05-25 13:13:44 (GMT)
commit1880d8b8231d0085700d5d3c03ee9b16c619720d (patch)
tree5ee56e8c0e04567dd7fb793a5c510007f623e3f3 /Misc
parent179bf213ea0432f2219c9b72ff4c4e18062fb588 (diff)
downloadcpython-1880d8b8231d0085700d5d3c03ee9b16c619720d.zip
cpython-1880d8b8231d0085700d5d3c03ee9b16c619720d.tar.gz
cpython-1880d8b8231d0085700d5d3c03ee9b16c619720d.tar.bz2
add a SETUP_WITH opcode
It speeds up the with statement and correctly looks up the special methods involved.
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 5526d9c..a6b5fce 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,9 @@ What's New in Python 2.7 alpha 1
Core and Builtins
-----------------
+- Issue #6101: A new opcode, SETUP_WITH, has been added to speed up the with
+ statement and correctly lookup the __enter__ and __exit__ special methods.
+
- Issue #5829: complex("1e500") no longer raises OverflowError. This
makes it consistent with float("1e500") and interpretation of real
and imaginary literals.