A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-January/012099.html below:

[Python-Dev] Re: Sets: elt in dict, lst.include

[Python-Dev] Re: Sets: elt in dict, lst.includeGreg Ewing greg@cosc.canterbury.ac.nz
Wed, 24 Jan 2001 15:45:01 +1300 (NZDT)
Thomas Wouters <thomas@xs4all.net>:

> Now, if only there was a terribly obvious way to spell it... so that it's
> immediately obvious which of the two you wanted...

Well, in the case of

  for key in d:

or

  for value in d:

it's immediately obvious to a *human* reader what is meant,
so all we need to do is make the compiler a bit smarter. This
can easily be done by the use of a small table, containing
the equivalents of the words 'key' and 'value' in all known
natural languages, against which the target variable name is
matched using some suitable fuzzy matching algorithm.
Soundex could be used for this, if we can decide on which
version to use...

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+



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