multiple assignment

Steven Bethard steven.bethard at gmail.com
Wed Mar 22 21:46:21 CET 2006


Anand wrote:
> Wouldn't it be nice to say
> 
> id, *tokens = line.split(',')

id, tokens_str = line.split(',', 1)

STeVe



More information about the Python-list mailing list