Hacker News new | ask | show | jobs
by kngl 4549 days ago
Making python 2 a little bit more compatible with python 3 is not the way to go.

What about make python 3 fully retro-compatible with python 2.7 with the help of magic imports

    from __past__ import byte_strings
    from __past__ import except_tuple
first this will output warnings, then it will raise RuntimeError.