Populating a dictionary, fast [SOLVED]

Michael Bacarella mbac at gpshopper.com
Tue Nov 13 12:28:19 EST 2007


> Shouldn't this be:
> 
>     id2name[key >> 40][key & 0xffffffffff] = name

Yes, exactly, I had done hex(pow(2,40)) when I meant hex(pow(2,40)-1)

I sent my correction a few minutes afterwards but Mailman
queued it for moderator approval (condition with replying to
myself?)





More information about the Python-list mailing list