News for hackers. Stuff that matters.
Re:Python dicts are now ordered by reubenmorais on Friday February 07, 2020 @12:54PM (#22268693)
std::map in C++ stores keys in order. You have to use std::unordered_map to not get that behavior.
Re:Python dicts are now ordered by xyzzyz on Friday February 07, 2020 @01:18PM (#22268967)
Yes, but that’s different kind of order. Python dicts order is insertion order, while std::map is key order.