On Thursday, March 3, 2011 4:26:19 PM UTC-5, Anthony wrote: 
>
> On Thursday, March 3, 2011 4:19:06 PM UTC-5, pbreit wrote: 
>>
>> Yeah, I got kind of lost, too. The thing that threw me off were "trs[] =" 
>> and "tables[] =". The = sign is for assignment, not adding or appending. 
>> Each "trs[] =" is re-assigning the whole variable each time, overwriting 
>> anything that was already there (if I'm not mistaken).
>
>  
> Actually, I think that simply raises a syntax error.
>
 
I think
 
trs[:] = something
 
would overwrite trs, as long as 'something' is an iterable.
 

Reply via email to