Skip to content

Comment on A function decorator that rewrites the bytecode to enable goto in Pythonparent

Comments

Surely the ten+ year Python 3-is-incompatible-with-2 saga was also a mistake.

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?

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.