4 ms·
Yes, e.g. in Ruby since 1.9, hash order is guaranteed.
by theonething 5y ago
Yes, e.g. in Ruby since 1.9, hash order is guaranteed.
- JodieBenitez 5y agoSame in Python since 3.6 (2016)
- vegai_ 5y agoAlthough the changes doc[1] states that dicts being ordered is an implementation detail that shouldn't be relied on. Nobody does of course ;) [1] https://docs.python.org/3.6/whatsnew/3.6.html#new-dict-implementation https://docs.python.org/3.6/whatsnew/3.6.html#new-dict-imple...
- warvariuc 5y agoAs of Python 3.7, this is no longer an implementation detail and instead becomes a language feature.