Hi All,

I just had reason the write the following:

itemCodes = [UPCxref['0'+xx[:10]][0] for xx in itemUPCs]

... and it occurred to me exactly how overloaded square brackets are.

This is certainly not something you want to see as a beginning python programmer, but I thought it might be an interesting example to parse.

Regards,

Emile


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to