summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-11-22 01:24:23 (GMT)
committerRaymond Hettinger <python@rcn.com>2016-11-22 01:24:23 (GMT)
commita3fec1543dc252934e79a4a50b1cbbf4708b4e7e (patch)
tree9388fdfbb31412809a450f2aeb86da9baef5a84c /Misc
parent4e17e042376ee5c64fad538bba19d786bbdf391c (diff)
downloadcpython-a3fec1543dc252934e79a4a50b1cbbf4708b4e7e.zip
cpython-a3fec1543dc252934e79a4a50b1cbbf4708b4e7e.tar.gz
cpython-a3fec1543dc252934e79a4a50b1cbbf4708b4e7e.tar.bz2
Issue #27100: With statement reports missing __enter__ before __exit__. (Contributed by Jonathan Ellington.)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index de614ee..cc421b0 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,10 @@ Core and Builtins
- Issue #28532: Show sys.version when -V option is supplied twice.
+- Issue #27100: The with-statement now checks for __enter__ before it
+ checks for __exit__. This gives less confusing error messages when
+ both methods are missing. Patch by Jonathan Ellington.
+
- Issue #28746: Fix the set_inheritable() file descriptor method on platforms
that do not have the ioctl FIOCLEX and FIONCLEX commands.