Re: [Python-Dev] PEP 340 keyword: after

2005-05-16 Thread Christos Georgiou
"Chris Ryland" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I hate to add to what could be an endless discussion, but... ;-) > > In this case, "while" is the better time-related prefix, whether > keyword (hopeless, due to ages-old boolean-controlled loop association) > or functi

Re: [Python-Dev] PEP 340 keyword: after

2005-05-05 Thread Michael Hudson
Chris Ryland <[EMAIL PROTECTED]> writes: > In this case, "while" is the better time-related prefix, whether Indeed. while_execution_is_lexically_in_the_next_block lock(theLock): ... Anyone? . Cheers, mwh -- Every day I send overnight packages filled with rabid weasels to people who u

Re: [Python-Dev] PEP 340 keyword: after

2005-05-05 Thread Chris Ryland
Rodrigo Dias Arruda Senra gpr.com.br> writes: > The code pattern that will 'wrap' the block might > not always make sense with the chosen keyword, if > that keyword is not semantically neutral. > (not time-related, not function-related, etc). > > Notice that is _no keyword_ is chosen, nothi

Re: [Python-Dev] PEP 340 keyword: after

2005-05-05 Thread Rodrigo Dias Arruda Senra
On Thu, 05 May 2005 14:58:02 +0200 "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > I haven't followed the PEP 340 discussion in detail, > but as the PEP doesn't list keywords that have been > considered and rejected, I'd like to propose my own: > use "after" instead of "block": > > after opening("

[Python-Dev] PEP 340 keyword: after

2005-05-05 Thread Martin v. Löwis
I haven't followed the PEP 340 discussion in detail, but as the PEP doesn't list keywords that have been considered and rejected, I'd like to propose my own: use "after" instead of "block": after opening("/etc/passwd") as f: for line in f: print line.rstrip() after locking(myLock): # cod