News for hackers. Stuff that matters.
Re:Python dicts are now ordered by setr on Friday February 07, 2020 @11:03AM (#22267266)
You're right, I read the gp too quickly.

But in the case of downgrading, I'm fairly sure there's a number of other breaking changes that can't trivially downgrade minor versions. Like f-strings were only introduced in python3.6 as I recall. Async keyword only exists as of 3.4 as well I think?

Re:Python dicts are now ordered by rflrob on Friday February 07, 2020 @11:18AM (#22267463)
I think the argument is that if you run code with f-strings and walruses on Python 3.5, the code will break noisily. Whereas if your code implicitly relies on ordered dicts, it could break silently. Syntax errors rarely cause subtle, hard to track bugs.
Re:Python dicts are now ordered by ses1984 on Friday February 07, 2020 @11:05AM (#22267293)
Introducing things is different than changing things.
Re:Python dicts are now ordered by setr on Friday February 07, 2020 @11:12AM (#22267384)
Sure, but you can't safely take everything from a higher version to a lower version in any case; if insertion order became gauranteed due to a bugfix, and wasn't backported, you'd be in the same boat.

The only way to consistently code cross-version is to start with the lowest you plan to support (assuming the higher versions are actually backwards-compatible).

Does any language gaurantee that code is both backwards and forwards compatible?

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?
Re:Python dicts are now ordered by muldvarp on Friday February 07, 2020 @11:25AM (#22267553)
Both of these would be syntax errors if you tried to execute them in earlier python versions. This change might break software completely silently.