Comment by jujube3
2 years ago
Python's changes between releases are not limited to removing deprecated APIs. Sometimes semantics changes in breaking ways, or new reserved words crop up, etc. etc. It certainly is Russian roulette trying to run python code on any version other than the one it was written for.
> Sometimes semantics changes in breaking ways, or new reserved words crop up, etc. etc.
Examples?
I know this specific example because it was one of a handful of reasons that delayed my workplace from upgrading past Python 3.5 (I think) for quite a while because of the addition of the reserved word `async`.
https://docs.python.org/3.11/whatsnew/3.5.html#pep-492-corou...
Can't speak to what GP was alluding to re: breaking semantic changes.