what does 'for _ in range()' mean?

Matteo Dell'Amico della at toglimi.linux.it
Thu Jul 29 19:54:21 CEST 2004

Peter Hansen wrote:

> Phil said Ocaml allowed multiple _ in tuple assignments but
> that Python did not, while I attempted to correct that assertion by
> showing that it in fact did.
> David and you were discussing a case involving function languages,
> which Python is not, where the use of multiple _ (which now has
> syntactical meaning, as opposed to being just an "ignore this" by
> convention) is allowed.
> 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. :-)


More information about the Python-list mailing list