[Tutor] improving speed using and recalling C functions

Peter Otten __peter__ at web.de
Fri Apr 11 21:35:47 CEST 2014


Gabriele Brambilla wrote:

> ok, it seems that the code don't enter in this for loop
> 
> for gammar, MYMAP in zip(gmlis, MYMAPS):
> 
> I don't understand why.

You have two variables with similar names, gmlis and gmils:

>>                 gmlis = []

>>                 gmils=[my_parts[7], my_parts[8], my_parts[9],
>> my_parts[10], my_parts[11]]

>>                 for gammar, MYMAP in zip(gmlis, MYMAPS):

I assume you wanted

                   for gammar, MYMAP in zip(gmils, MYMAPS):




More information about the Tutor mailing list