[Python-Dev] PEP 340 - possible new name for block-statement

David Ascher david.ascher at gmail.com
Fri Apr 29 19:24:58 CEST 2005

> I agree, but does this then work:
> x = opening("foo")
> ...stuff...
> x as f:
>    # etc
> ?  And if not, why not?  And if yes, what happens if "stuff" raises an
> exception?

Forget it -- the above is probably addressed by the PEP and doesn't
really depend on whether there's a kw or not.

More information about the Python-Dev mailing list