Re: Dictionary sorting

2011-11-03 Thread insomnia
Moreover, for on-the-fly ordering you can consider to use sorted() on 
yourdict.keys(), like:

for k in sorted(yourdict.keys()):
print k, yourdict[k]

I think it has no side effects, except that the orderering can be slow on huge 
data sets, and that you need to call it every time after updating the dict keys.

Regards,
insomniac
-- 
http://mail.python.org/mailman/listinfo/python-list


coding contest

2010-03-24 Thread insomnia iit roookee
 IIT ROORKEE COGNIZANCE presents INSOMNIA :THE MIDNIGHT PROGRAMMING
CONTEST...
 www.insomnia.cognizance.org.in

  Starts on : 27th March, 9:00 PM

Cash prizes worth Rs.30,000 on stake for this round.
(PS: Problems of previous rounds are available for practice.)
-- 
http://mail.python.org/mailman/listinfo/python-list