Re: [Python-Dev] with-statement heads-up

2006-02-28 Thread Mike Bland
On 2/28/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 2/28/06, Mike Bland <[EMAIL PROTECTED]> wrote: > > On 2/28/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > > I just realized that there's a bug in the with-statement as currently > > >

Re: [Python-Dev] with-statement heads-up

2006-02-28 Thread Mike Bland
On 2/28/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > I just realized that there's a bug in the with-statement as currently > checked in. __exit__ is supposed to re-raise the exception if there > was one; if it returns normally, the finally clause is NOT to re-raise > it. The fix is relatively

[Python-Dev] PEP 343 "with" statement patch

2006-02-21 Thread Mike Bland
With Neal Norwitz's help, I've submitted an initial patch to implement the "with" statement from PEP 343 (SourceForge request ID 1435715). There is a little more work to be done (on the doc especially), and I have a couple of questions written up on the SourceForge page, but the code works to the