News for hackers. Stuff that matters.
Re:Python dicts are now ordered by masklinn on Friday February 07, 2020 @02:03PM (#22269478)
1. sets don't use the new dict's implementation

2. IIRC the new dicts are no(t significantly) slower than the old dicts, however they use less memory, and iterate faster

The iteration order is actually a side-effect of implementation details, the original goals were a more compact representation and a faster iteration: https://mail.python.org/pipermail/python-dev/2012-December/1...

Re:Python dicts are now ordered by lukeschlather on Friday February 07, 2020 @03:14PM (#22270383)
> 1. sets don't use the new dict's implementation

Yes, of course. That's why I'm wondering if turning dict keys into a set is slower now.