[Python-Dev] PEP 340 - Remaining issues - keyword
Guido van Rossum
gvanrossum at gmail.com
Fri May 6 17:20:24 CEST 2005
> 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 get that should Google for do-loop. :-)
I wonder how many folks call their action methods do() though.
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev