[Python-Dev] exec/with thunk-handling proposal
Gerald S. Williams
gsw@agere.com
Mon, 3 Feb 2003 09:27:20 -0500
holger krekel wrote:
> I think we can may get away with only a "weak" keyword
> and allow the aforementioned encapsulation of execution
> events into an object like this:
>
> exec expr [with params]: suite
I was about to propose something similar. This looks like
it can be unified with what Guido proposed.
> regards and interested in comments,
An observation:
Used like this, "with" looks like an alias for "lambda"
(providing default values for all parameters).
-Jerry