Re: [Python-Dev] PEP 340 - Remaining issues - keyword

2005-05-06 Thread Tim Peters
[Guido] > ... > I wonder how many folks call their action methods do() though. A little Google(tm)-ing suggests it's not all that common, although it would break Zope on NetBSD: http://www.zope.org/Members/tino/ZopeNetBSD I can live with that . ___

Re: [Python-Dev] PEP 340 - Remaining issues - keyword

2005-05-06 Thread Guido van Rossum
[Greg Ewing] > How about 'do'? > >do opening(filename) as f: > ... > >do locking(obj): > ... > >do carefully(): # :-) > ... I've been thinking of that too. It's short, and in a nostalgic way conveys that it's a loop, without making it too obvious. (Those too young to

Re: [Python-Dev] PEP 340 - Remaining issues - keyword

2005-05-05 Thread Greg Ewing
Nick Coghlan wrote: > Something relatively nonsensical, but usefully mnemonic > (like 'stmt') may be a good way to go. How about 'do'? do opening(filename) as f: ... do locking(obj): ... do carefully(): # :-) ... -- Greg Ewing, Computer Science Dept, +---