On Nov 10, 11:23 am, r <rt8...@gmail.com> wrote: > if something_that_returns_value() as value: > #do something with value
Been proposed before. No one has bothered to write a PEP for it, so I can't say for sure how the Python gods would react, but I suspect a "meh, don't think it's important enough". This, even though it's more useful than you are giving it credit for. It's a minor improvement. Carl Banks -- http://mail.python.org/mailman/listinfo/python-list