[issue17788] Add a with expression, for use in comprehensions

2013-04-18 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue17788] Add a with expression, for use in comprehensions

2013-04-18 Thread Eric V. Smith
Eric V. Smith added the comment: Indeed, this should be on python-ideas. Eric: can you start a thread over there? Thanks. -- nosy: +eric.smith resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue17788] Add a with expression, for use in comprehensions

2013-04-18 Thread Berker Peksag
Berker Peksag added the comment: I think this needs to be discussed on python-ideas first. -- nosy: +berker.peksag ___ Python tracker ___

[issue17788] Add a with expression, for use in comprehensions

2013-04-18 Thread Eric Wieser
Changes by Eric Wieser : -- components: +Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue17788] Add a with expression, for use in comprehensions

2013-04-18 Thread Eric Wieser
New submission from Eric Wieser: It would be nice if there was a `with` "expression". Such that instead of: with open(...) as f: result = foo(f) One could write: result = foo(f) with open(...) as f This would be particularly useful in comprehensions. Instead of: files = {