17 Dec
2019
17 Dec
'19
1:52 a.m.
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/