[Python-Dev] PEP 340 keyword: after

Christos Georgiou tzot at mediconsa.com
Mon May 16 01:40:11 CEST 2005


"Chris Ryland" <cpr at emsoftware.com> wrote in message 
news:loom.20050505T164909-961 at post.gmane.org...

> 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 function, since you want to imply that the code block is going
> on *while* the lock is held or *while* the file is open (and you also
> want to imply that afterwards, something else happens, i.e., cleanup).
>
> while_locked(myLock):
>    # code that needs to hold the lock

Ah.  You mean 'during' :) 




More information about the Python-Dev mailing list