On Monday 28 August 2006 10:21, Edward C. Jones wrote:
 > d = dict()
 > ...
 > thekeys = d.keys()
 > thekeys.sort()
 > for key in thekeys:
 >      ...
 >
 > What should I use in Python 3.0?

d = dict()
...
for key in sorted(d.keys()):
    ...


  -Fred

-- 
Fred L. Drake, Jr.   <fdrake at acm.org>
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to