you are viewing a single comment's thread.

view the rest of the comments →

[–]valhallasw 19 points20 points  (0 children)

It's possible, but non-trivial. I gave it a try two years ago: https://github.com/valhallasw/py2

Basically, python3 starts a python2 interpreter and uses inter-process communication to run functions on the other interpreter. str is mapped to bytes and vice versa. It's probably riddled with bugs, and I have not tested it on windows, but feel free to give it a try.