Re:Python Hash Tables: understanding dictionaries
by dragonwriter on Sunday August 23, 2020 @03:11PM
(#24254457)
> They are sorted.
No, they are insertion-ordered.
> Nobody but python would do that.
Ruby Hashes are insertion-ordered; JavaScript objects have numeric properties ordered numerically (so, in a sense, are sorted), but other propertied in insertion order.
No, they are insertion-ordered.
> Nobody but python would do that.
Ruby Hashes are insertion-ordered; JavaScript objects have numeric properties ordered numerically (so, in a sense, are sorted), but other propertied in insertion order.