3 ms·
I have the opposite reaction to it, it seems insanely idiotic to have a associative array with ordered keys. It can only make sense to someone who doesn't know
by larrykwg 9y ago
I have the opposite reaction to it, it seems insanely idiotic to have a associative array with ordered keys. It can only make sense to someone who doesn't know anything about fundamental data structures and a language that caters to people like that in spite of the performance penalty is just strange.
but hey, its Guido, I still can't fathom that he moved reduce into functools.
- goerz 9y agoI vaguely remember that the change to ordered keys in 3.6 was actually a side effect of making the dict implementation more efficient! https://mail.python.org/pipermail/python-dev/2016-September/146327.html https://mail.python.org/pipermail/python-dev/2016-September/...
- djrobstep 9y agoPutting aside the fact that this change was made to increase performance, I'd rather have a language that's useful, expressive, and semantically powerful by default, instead of one that is less powerful and harder to use but slightly faster.
- sametmax 9y agoWell, given that I used reduce twice in production in 14 years of Python, my guess is that you are using Python wrong.