This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author danuker
Recipients danuker
Date 2020-11-16.10:42:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Now that dicts are ordered[1], would it by any chance make sense to also order sets?

A use case that I ran into is trying to reproducibly get a random.choice from a set (after calling random.seed). 

At first I did not need reproducibility, and I just called random.choice(list(my_set)). 

Later when I did need it, it was difficult to find out what was wrong. Then I realized that sets are unordered, and that order is not dependent on random.seed.

It seems there are also some other confused newbies out there.[2][3]

Thank you for the powerful language that is Python!

Date User Action Args
2020-11-16 10:42:46danukersetrecipients: + danuker
2020-11-16 10:42:46danukersetmessageid: <>
2020-11-16 10:42:46danukerlinkissue42368 messages
2020-11-16 10:42:45danukercreate