News for hackers. Stuff that matters.
Re:A function decorator that rewrites the bytecode to enable... by loeg on Monday September 20, 2021 @10:09PM (#28601332)
Surely the ten+ year Python 3-is-incompatible-with-2 saga was also a mistake.
Re:A function decorator that rewrites the bytecode to enable... by eru on Tuesday September 21, 2021 @02:48AM (#28602591)
They could have tried to handle this in a better way, but some incompatible changes were useful and probably necessary.

Perhaps files could have declared at the top whether they were Python 2 or 3, and the pyc could have been kept as compatible as possible?

Re:A function decorator that rewrites the bytecode to enable... by masklinn on Tuesday September 21, 2021 @05:40AM (#28603401)
Wouldn’t have been very useful, there were not that many incompatible syntactic changes you could not ignore or paper over (string literals were the main issue until u”” was restored) and it would not have helped any with the semantic & api changes.