4 ms·
Can anyone point me in the direction of information of why is would be so hard to have a from __ancient_history__ import print_statement, etc. ...especial
by xrange 10y ago
Can anyone point me in the direction of information of why is would be so hard to have a
from __ancient_history__ import print_statement, etc.
...especially now that most of the big projects that are ever going to get converter have been converted? Even if it was slower / used more memory / etc. for those programs that did use that pragma.
- fiedzia 10y agoBecause python 3 made hundreds of small changes here and there. Supporting them all would not be possible. The problem is not speed and memory, but complexity of the interpreter.
- xrange 10y agoI was more thinking that the compatibility layer would maybe suck in a whole python 2 parser, and potentially even the interpreter, operating on potentially common objects in memory. But just how different are the bytecodes for 2 vs. 3? Even if they were very different, I guess my question is, how hard would it be to transpile 2 bytecode into 3 bytecode. I'd think it would be loads simpler than what Jython does on the JVM for what I can only imagine must be a radically different virtual machine and memory model. I guess the real answer is probably more political rather than technical.