multiple assignment

Steven Bethard steven.bethard at gmail.com
Wed Mar 22 15:46:21 EST 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