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

srinivasan srinivas sri_annauni at
Sun Sep 14 16:57:20 CEST 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.


      Bring your gang together. Do your thing. Find your favourite Yahoo! group at

More information about the Python-list mailing list