Python Forum
Sort Differences in 2.7 and 3.10 Explained
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sort Differences in 2.7 and 3.10 Explained
#2
Looking at it, I believe the difference is not in sorted, but rather in the order of the dictionary. Early versions of Python did not guarantee the order of items in a dictionary. And, indeed, your result is clearly not sorted in 2.7 (not supported in many years).
dgrunwal likes this post
Reply


Messages In This Thread
RE: Sort Differences in 2.7 and 3.10 Explained - by jefsummers - Apr-26-2022, 11:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Tutorial 4.4 Loop Explained rts 2 938 Sep-26-2022, 07:46 PM
Last Post: rts
  Calculate the sum of the differences inside tuple PUP280 4 1,264 Aug-12-2022, 07:20 PM
Last Post: deanhystad
Photo a.sort() == b.sort() all the time 3lnyn0 1 1,397 Apr-19-2022, 06:50 PM
Last Post: Gribouillis
  Newbie - code solution explained Stjude1982 2 1,963 Sep-16-2021, 08:54 AM
Last Post: Stjude1982
  How to compare two PDFs for differences Normanie 2 2,485 Jul-30-2020, 07:31 AM
Last Post: millpond
  Condition check differences and how to organise code? adam2020 4 2,779 May-12-2019, 04:12 PM
Last Post: Yoriz

Forum Jump:

User Panel Messages

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