diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-05-25 13:13:44 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-05-25 13:13:44 (GMT) |
commit | 1880d8b8231d0085700d5d3c03ee9b16c619720d (patch) | |
tree | 5ee56e8c0e04567dd7fb793a5c510007f623e3f3 /Misc | |
parent | 179bf213ea0432f2219c9b72ff4c4e18062fb588 (diff) | |
download | cpython-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/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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. |