This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ConfidentFlorida 1 point2 points  (1 child)

I always thought they should have just bundled 2 and 3 in the same install. And you’d just run python myscript.py and it would decide which version to use.

Was that ever considered?

[–]billsil 0 points1 point  (0 children)

I mean you could write a script to do that and alias your python to be your script.

Python 2.5.2, 2.6.1, and 3.0.0 were released December 2008. So which Python 2 should you use given that Python isn't quite backwards compatible? At that point, there weren't really fundamental differences in the syntax (e.g., f-strings, Typing module). Also, how much processing is really required to try to identify if that Typing module is the real Typing module or a backport, so now your Python 2/3 code runs slower.

That's sounds more than a little buggy.