[Python-Dev] PEP 343 update (with statement context terminology)

Phillip J. Eby pje at telecommunity.com
Mon Apr 24 21:39:21 CEST 2006


At 12:24 PM 4/24/2006 -0700, Aahz wrote:
>On Mon, Apr 24, 2006, Phillip J. Eby wrote:
> > At 04:48 AM 4/25/2006 +1000, Nick Coghlan wrote:
> >>
> >>Using two names to describe three different things isn't intuitive for
> >>anybody.
> >
> > Um, what three things? I only count two:
> >
> > 1. Objects with __context__
> > 2. Objects with __enter__ and __exit__
> >
> > What's the third thing?
>>The actual context that's used during the execution of BLOCK. It does
>not exist as a concrete object,

Um, huh? It's a thing but it's not an object? I'm lost now. I don't see 
why we should introduce a concept that has no concrete existence into 
something that's hard enough to explain when you stick to the objects that 
actually exist. :)


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /