News for hackers. Stuff that matters.
Re:Python dicts are now ordered by peteradio on Friday February 07, 2020 @11:36AM (#22267681)
Issue seems to be silent incorrect behavior, what happens if you attempt to run python code containing f-strings using an older python version. Does it raise an exception? That's good! What happens now if you write code for 3.7 which takes advantage of the new ordering and someone grabs it from your repo and runs it using 3.2, it would happily give incorrect results and noone is the wiser.
Re:Python dicts are now ordered by visarga on Friday February 07, 2020 @02:07PM (#22269523)
If you expect this situation you can assert the language version.
Re:Python dicts are now ordered by drdaeman on Friday February 07, 2020 @02:25PM (#22269749)
But the whole point is that some developer won’t expect that someone would run their code on an older Python, isn’t it?