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

Chris Rebert pyideas at rebertia.com
Sat May 30 02:53:26 CEST 2009


On Fri, May 29, 2009 at 3:30 PM, Daniel Stutzbach
<daniel at stutzbachenterprises.com> wrote:
> 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

Sounds like it also got a thumbs-down from the BDFL:
http://mail.python.org/pipermail/python-ideas/2009-February/003184.html

Cheers,
Chris
-- 
http://blog.rebertia.com



More information about the Python-ideas mailing list