On 12/16/19 10:59 AM, Tim Peters wrote:
BTW, what should
{1, 2} | {3, 4, 5, 6, 7}
return as ordered sets? Beats me.;
The obvious answer is {1, 2, 3, 4, 5, 6, 7}. Which is the result I got
in Python 3.8 just now ;-) But that's just a side-effect of how hashing
numbers works, the implementation, etc. It's rarely stable like this,
and nearly any other input would have resulted in the scrambling we all
(currently) expect to see.
>>> {"apples", "peaches", "pumpkin pie"} | {"who's", "not",
"ready", "holler", "I" }
{'pumpkin pie', 'peaches', 'I', "who's", 'holler', 'ready',
'apples', 'not'}
//arry/
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/6ZNPKM5HFK76DZC2QF3SHS6RQWYZKZ6X/
Code of Conduct: http://python.org/psf/codeofconduct/