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.
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?