Is there any nice way to unpack a list of unknown size??

srinivasan srinivas sri_annauni at yahoo.co.in
Sun Sep 14 10:57:20 EDT 2008


I want to do something like below:

1. first, second, third, *rest = foo

 2. for (a,b,c,*rest) in list_of_lists:

Please suggest.

Thanks,
Srini


      Bring your gang together. Do your thing. Find your favourite Yahoo! group at http://in.promos.yahoo.com/groups/



More information about the Python-list mailing list