Re: [Python-Dev] 'With' context documentation draft (was Re: Terminology for PEP 343

2005-07-15 Thread Michael Hudson
"M.-A. Lemburg" <[EMAIL PROTECTED]> writes: > This is exactly what I'm getting at: I can see the potential > use for resource management (which is what started out the > whole idea IIRC), but fail to see why you'd want to use it > for anything more complicated than that. I, as a concrete example,

Re: [Python-Dev] 'With' context documentation draft (was Re: Terminology for PEP 343

2005-07-15 Thread M.-A. Lemburg
Raymond Hettinger wrote: > {MAL] > >>This is exactly what I'm getting at: I can see the potential >>use for resource management (which is what started out the >>whole idea IIRC), but fail to see why you'd want to use it >>for anything more complicated than that. > > > Substitute "different" for

Re: [Python-Dev] Adding the 'path' module (was Re: Some RFE for review)

2005-07-15 Thread M.-A. Lemburg
Martin v. Löwis wrote: > Guido van Rossum wrote: > >>Ah, sigh. I didn't know that os.listdir() behaves differently when the >>argument is Unicode. Does os.listdir(".") really behave differently >>than os.listdir(u".")? Bah! I don't think that's a very good design >>(although I see where it comes f

Re: [Python-Dev] 'With' context documentation draft (was Re: Terminology for PEP 343

2005-07-15 Thread Nick Coghlan
M.-A. Lemburg wrote: > This is exactly what I'm getting at: I can see the potential > use for resource management (which is what started out the > whole idea IIRC), but fail to see why you'd want to use it > for anything more complicated than that. The other suggested uses (redirecting stdout, log

Re: [Python-Dev] 'With' context documentation draft (was Re: Terminology for PEP 343

2005-07-15 Thread Nick Coghlan
M.-A. Lemburg wrote: > If you then start using terms in the documentation that cause > wrong associations, you make life harder for new programmers. I agree that every new construct and protocol makes life that much harder for anyone learning Python, but the bit I'm having trouble grasping is why

[Python-Dev] 'With' context documentation draft (was Re: Terminology for PEP 343

2005-07-15 Thread Jim Jewett
Nick Coghlan asked Marc-Andre Lemburg: > There's clearly something that bothers you about this though, and I'd like to > understand what it is. Does the term 'context' carry additional, more > specific, connotations for you that I'm simply not taking into account? To me, a context is much large

Re: [Python-Dev] 'With' context documentation draft (was Re: Terminology for PEP 343

2005-07-15 Thread Ron Adam
Michael Hudson wrote: > "M.-A. Lemburg" <[EMAIL PROTECTED]> writes: > > >>This is exactly what I'm getting at: I can see the potential >>use for resource management (which is what started out the >>whole idea IIRC), but fail to see why you'd want to use it >>for anything more complicated than tha

Re: [Python-Dev] 'With' context documentation draft (was Re: Terminology for PEP 343

2005-07-15 Thread Guido van Rossum
On 7/15/05, Ron Adam <[EMAIL PROTECTED]> wrote: [several new syntax proposals] Please stop proposing new syntax. The PEP was accepted after quite enough back-and-forth; there's no point opening this up yet again. -- --Guido van Rossum (home page: http://www.python.org/~guido/) __

Re: [Python-Dev] 'With' context documentation draft (was Re: Terminology for PEP 343

2005-07-15 Thread Ron Adam
Guido van Rossum wrote: > On 7/15/05, Ron Adam <[EMAIL PROTECTED]> wrote: > [several new syntax proposals] > > Please stop proposing new syntax. The PEP was accepted after quite > enough back-and-forth; there's no point opening this up yet again. My apologies Guido. Subtracting the inappropriat

Re: [Python-Dev] 'With' context documentation draft (was Re: Terminology for PEP 343

2005-07-15 Thread Nick Coghlan
Ron Adam wrote: > 3. The "with" documentation could possibly be grouped with or after > the "try" documentation as it may be easier to understand in that context. I was looking for an appropriate place in the tutorial to put a couple of usage examples - a new subsection immediately after th

Re: [Python-Dev] 'With' context documentation draft (was Re: Terminology for PEP 343

2005-07-15 Thread Stephen J. Turnbull
> "Jim" == Jim Jewett <[EMAIL PROTECTED]> writes: Jim> Nick Coghlan asked Marc-Andre Lemburg: >> There's clearly something that bothers you about this though, >> and I'd like to understand what it is. Does the term 'context' >> carry additional, more specific, connotations for