Python Forum
Order of key and value in dictionary keeps changing
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Order of key and value in dictionary keeps changing
#3
Additional tidbit to buran's excellent answer:

Whats new in Python 3.8 >>> Other language changes

Quote:Dict and dictviews are now iterable in reversed insertion order using reversed(). (Contributed by RĂ©mi Lapeyre in bpo-33462.)
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
RE: Order of key and value in dictionary keeps changing - by perfringo - Apr-02-2020, 07:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Changing values in a dictionary within a dictionary swannhouse 2 3,339 Apr-25-2018, 11:59 PM
Last Post: swannhouse
  Changing dictionary values not working SnekLover123 5 4,081 Nov-01-2017, 05:39 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020