On 2006-11-30, Neil Cerutti <[EMAIL PROTECTED]> wrote:
> On 2006-11-30, John Henry <[EMAIL PROTECTED]> wrote:
>> If I have a list of say, 10 elements and I need to slice it into
>> irregular size list, I would have to create a bunch of temporary
>> variables and then regroup them afterwords, like:
>>
>> # Just for illustration. Alist can be any existing 10 element list
>> a_list=("",)*10
>> (a,b,c1,c2,c3,d1,d2,d3,d4,d5)=a_list
>> alist=(a,)
>> blist=(b,)
>> clist=(c1,c2,c3)
>> dlist=(d2,d3,d4,d5)
>>
>> That obviously work but do I *really* have to do that?
>
> Please post actual code we can run, rather than text that is
> almost, but not quite, entirely unlike Python code.

Ummm... that comment is withdrawn. :-O

-- 
Neil Cerutti
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to