what does 'for _ in range()' mean?
Peter Hansen
peter at engcorp.com
Thu Jul 29 15:07:29 EDT 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)?
-Peter
More information about the Python-list
mailing list