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 steven.daprano
Recipients Ylem, steven.daprano
Date 2019-11-19.22:13:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574201608.02.0.300950189365.issue38853@roundup.psfhosted.org>
In-reply-to
Content
I'm sorry, I don't understand what part of the documentation you think is violated here. The docs say that sets are unordered, but of course when printing the elements have to be given in *some* order.

The given output seems unordered to me: -1 is smaller than 25, but it appears last in the output.

The specific order you see will depend on the specific values in the set, as well as the order that they were inserted, deleted, and/or re-inserted in some arbitrary way. For example:

    >>> repr({4, 5, 2**31+1, 2, 2**31+2, 3, 2**31, 0})
    '{0, 2147483648, 2, 3, 2147483650, 2147483649, 5, 4}'


I don't think there is a bug here. Can you explain what you think the bug is, in detail please?
History
Date User Action Args
2019-11-19 22:13:28steven.dapranosetrecipients: + steven.daprano, Ylem
2019-11-19 22:13:28steven.dapranosetmessageid: <1574201608.02.0.300950189365.issue38853@roundup.psfhosted.org>
2019-11-19 22:13:27steven.dapranolinkissue38853 messages
2019-11-19 22:13:27steven.dapranocreate