[Python-ideas] with statement vs. try...except...finally

Daniel Stutzbach daniel at stutzbachenterprises.com
Sat May 30 00:30:38 CEST 2009


On Fri, May 29, 2009 at 1:18 PM, Gerald Britton <gerald.britton at gmail.com>wrote:

> I'm wondering if the "with" statement should have exception clauses
> like the "try" statement, even though this seems to defeat part of the
> reason for the "with" statement.


FWIW, the same suggestion previously came up in the following thread:
http://mail.python.org/pipermail/python-ideas/2009-February/003169.html

--
Daniel Stutzbach, Ph.D.
President, Stutzbach Enterprises, LLC <http://stutzbachenterprises.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20090529/c66b549e/attachment.html>


More information about the Python-ideas mailing list