Re:Python dicts are now ordered
by inopinatus on Friday February 07, 2020 @02:04PM
(#22269492)
Point of order: Ruby’s hashes do preserve insertion order. Python dicts are now the same.
[ Parent
| on HN ]
Good for Ruby! Nice to hear.
I'm pretty sure they didn't in Ruby ~1.8 though. It's been awhile :-) Can't remember exactly which version, but it bit me more than once so I'm pretty sure :)
Yup, I think Ruby 1.9 or so made hashes ordered.