"Colin J. Williams" <c...@ncf.ca> 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())] -- http://mail.python.org/mailman/listinfo/python-list