[Python-ideas] adding an __exec__ method to context managers?
Stephen J. Turnbull
stephen at xemacs.org
Tue Oct 13 09:22:31 CEST 2009
Carl Johnson writes:
> Frankly I think this list is going to face proposals for some block
> substitute or another every couple months between now and whenever
> Python finally allows for some more readable way of passing functions
> to other functions.
I suspect all the blockheads<wink> will switch to Ruby before Python
gets such a facility, given that lambda itself is considered an
unfortunate un-Pythonic legacy by many, and lambda-with-suite quite
beyond the pale.
This use of with is the most plausible I've seen, though, I have to
admit that.
More information about the Python-ideas
mailing list