A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-May/053450.html below:

[Python-Dev] PEP 340 - Remaining issues

[Python-Dev] PEP 340 - Remaining issues - keyword [Python-Dev] PEP 340 - Remaining issues - keywordGuido van Rossum gvanrossum at gmail.com
Fri May 6 17:20:24 CEST 2005
[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 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 mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4