New submission from Dan Gheorghe Haiduc :
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
Dan Gheorghe Haiduc added the comment:
Oops. The reference number [2] in the previous message should instead be
https://stackoverflow.com/q/6614447/235463 .
--
___
Python tracker
<https://bugs.python.org/issue42
Dan Gheorghe Haiduc added the comment:
rhettinger wrote [1]:
> The existing setobject code has been finely tuned and micro-optimized over
> the years, giving it excellent performance on workloads we care about.
This worries me also. But I suppose the tuning should make itself visi