3 ms·
Small note: Python's standard dict has been ordered since ~3.7 E.g. https://mail.python.org/pipermail/python-dev/2017-December/151283.html https://mail.python.
by jpau 5y ago
Small note: Python's standard dict has been ordered since ~3.7
E.g. https://mail.python.org/pipermail/python-dev/2017-December/151283.html https://mail.python.org/pipermail/python-dev/2017-December/1...
- adsharma 5y agoLooking for feedback here. How many programmers actually know this and expect it? Is it worth the extra complexity when translating to static languages which don't provide this guarantee? From an implementation perspective, doing it for the ordereddict special case is much simpler.
- deleted 5y ago[deleted]
- erezsh 5y agoI think you can get away with keeping it unordered for 95% of the code. But the remaining 5% are going to fail in very confusing, and possibly inconsistent ways.