Re: Ordering numbers

2006-01-19 Thread Kent Johnson
yawgmoth7 wrote: > I have a dictonary here: > > seq = {8:0x13AC9741, 10:0x27592E8, 4:0x4EB25D, 5:0x9D64B, 7:0x13AC9, > 1:0x2759, 11:0x4EB, 3:0x9D, 9:0x13, 2:0x2, 0:0x0, 6:0x0} > > Python always prints them in order, from least to greatest. But I > wanna have it show them in hte order that I put i

Re: Ordering numbers

2006-01-17 Thread Fredrik Lundh
"yawgmoth7" wrote: > I have a dictonary here: > > seq = {8:0x13AC9741, 10:0x27592E8, 4:0x4EB25D, 5:0x9D64B, 7:0x13AC9, > 1:0x2759, 11:0x4EB, 3:0x9D, 9:0x13, 2:0x2, 0:0x0, 6:0x0} > > Python always prints them in order, from least to greatest. nope. Python prints them in ... in an arbitrary o