News for hackers. Stuff that matters.
Re:Show HN: Refurb – A tool for refurbishing and modernizing... by cdrini on Wednesday September 28, 2022 @11:31AM (#33009131)
Fun fact: not only is the iteration order of sets in python unordered, it's also undeterministic! A set of the same values, iterated in two python program, could iterate in a different order.

I learned this when a unit test that iterated over a set started failing sporadically :P super confusing bug!

Re:Show HN: Refurb – A tool for refurbishing and modernizing... by olejorgenb on Wednesday September 28, 2022 @01:21PM (#33010548)
I think this is just for sets whos items hash derive from `hash(some_string)` (eg.: sets of strings)

This is because the string hash function is randomized on process startup to help prevent DOS attacks: https://stackoverflow.com/q/30585108/1517969