> On 13 Jul 2020, at 05:55, Christopher Barker <python...@gmail.com> wrote: > > well, sure, though I have to say that I think that that's an unfortunate > confusing thing about python dicts. IN fact, I doubt there are many uses at > all for dict.keys() -- most uses can jsut use the dict.
I use key() all the time to sort the keys before printing. for name in sorted(dict.key()): print(name, dict[name) Barry
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/DIAEDDJ5A3Y7BFSH452KPGRCAIKHLYNL/ Code of Conduct: http://python.org/psf/codeofconduct/