Coding Nested Loops

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Fri Sep 15 13:19:54 EDT 2006


Rich Shepard wrote:
> On Fri, 15 Sep 2006, Peter Otten wrote:
 
>> It's not clear to me why you would use dictionaries, especially
>> as they are unordered; I used lists instead:

>    Because the data comes via a serial port as sequences of two
>    bytes from an
> OMR reader, and the byte pairs need to be converted into values
> meaningful to the application.

That doesn't answer the question. A list of 2-tuples would do the
same (and was ordered and could be indexed).

Regards,


Björn

-- 
BOFH excuse #408:

Computers under water due to SYN flooding.




More information about the Python-list mailing list