On Mar 1, 1:43 am, Paul Rubin <http://[email protected]> wrote: > "Colin J. Williams" <[email protected]> writes: > > > # print [mydict[x] for x in sorted(mydict.keys)] Instance object > > is not iterable > > It was a typo. Use: > > print [mydict[x] for x in sorted(mydict.keys())]
Even better print [mydict[x] for x in sorted(mydict)] -- http://mail.python.org/mailman/listinfo/python-list
