Python 2 and 3, are bytecodes compatible (pyo & pyc)?

Python 2 and 3, are bytecodes compatible (pyo and pyc)?

Is it possible to execute python 2 pyo and pyc file using python 3?

+7
source share
1 answer

No, they are usually not even compatible between minor releases (for example, 2.6 vs. 2.7).
However, since you usually have .py files, python will automatically compile them for the current version.

+6
source

All Articles