what does 'for _ in range()' mean?
peter at engcorp.com
Thu Jul 29 21:07:29 CEST 2004
Matteo Dell'Amico wrote:
> Peter Hansen wrote:
>> Sounds to me like the two discussions are unrelated.
> More or less so. It was only a discussion on the etimology of the
> underscore convention. :-)
In that case they would be related, but is this any more than
supposition on your part? Is the use of _ as a throw-away in
for loops, and perhaps even in the interpreter as "last result",
definitely descended from its wildcard usage in functional
languages (or, at least, Ocaml)?
More information about the Python-list