grouping a flat list of number by range
K.S.Sreeram
sreeram at tachyontech.net
Sun Jun 4 14:12:20 EDT 2006
Yup! '_' is just used as a dummy. Its a pretty common idiom. There's
nothing special about that variable.
joh12005 at yahoo.fr wrote:
> Hello
>
>> ... _, first_n = group[0]
>
> what is the meaning of the underscore "_" ? is it a special var ? or
> should it be readed as a way of unpacking a tuple in a non useful var ?
> like
>
> lost, first_n = group[0]
>
> best regards.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20060604/d7323120/attachment.sig>
More information about the Python-list
mailing list