Paul Rubin wrote:
> "Carl Banks" <[EMAIL PROTECTED]> writes:
> > > http://developer.mozilla.org/en/docs/New_in_JavaScript_1.7
> > Maybe in exchange, Python can borrow the let statement.
>
> Maybe the with statement could be extended to allow binding more than
> one variable.
>     with x as f(), y as g():
>        blah (x, y)

from contextlib import nested

with nested(f(), g()) as (x, y):
   ....

-Mike

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to