[Python-Dev] More on contextlib - adding back a contextmanagerdecorator
Fredrik Lundh
fredrik at pythonware.com
Mon May 1 10:48:44 CEST 2006
Guido van Rossum wrote:
> Things should be as simple as possible but no simpler. It's pretty
> clear to me that dropping __context__ approaches this ideal. I'm sorry
> I didn't push back harder when __context__ was first proposed -- in
> retrospect, the first 5 months of PEP 343's life, before __context__
> (or __with__, as it was originally called) was invented, were by far
> its happiest times.
I've posted two versions of the "with" page from the language reference:
http://pyref.infogami.com/with (current)
http://pyref.infogami.com/with-alt (simplified)
(the original is a slightly tweaked version of the current development docs)
</F>
More information about the Python-Dev
mailing list