Re: [Python-Dev] More on contextlib - adding back a contextmanagerdecorator

2006-05-01 Thread Fredrik Lundh
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 __c

Re: [Python-Dev] More on contextlib - adding back a contextmanagerdecorator

2006-04-30 Thread Fredrik Lundh
Guido van Rossum wrote: > I believe the context API design has gotten totally out of hand. > I have a counter-proposal: let's drop __context__. Heh. I was about to pull out the "if the implementation is hard to explain, it's a bad idea (and bad ideas shouldn't go into 2.X)" rule last week in resp