3 ms·
It would mean shipping 2 interpreters and libraries.
by maxerickson 6y ago
It would mean shipping 2 interpreters and libraries.
- yjftsjthsd-h 6y agoWe did that. Every Linux distribution I've ever seen had packages for python 2 and 3 that expected to be installed next to each other as needed.
- maxerickson 6y agoSure, but it would have to be a single executable with 2 interpreters inside of it to support some sort of incremental upgrade path, which is what the comment I replied to is talking about (they are asking for something that didn't get made). And then you have to decide if they can talk to each other or what.
- yjftsjthsd-h 6y agoOh, a module level 2/3 split, or even finer than that. Okay, I agree that that would have helped the transition, at the cost of being a pain to implement (if it's even reasonable, ex. I'm not sure what to do if a py2 function passes a string to a py3 function)
- mikepurvis 6y agoWouldn't have had to be the whole interpreter, really just a flag with single file scope which makes bare strings be interpreted as bytes instead of str, and maybe some other similar translations in stdlib functions.