Python 2 and 3, are the bytecode (pyo & pyc) backward compatible?
can i execute python 2 pyo & pyc file with python 3?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, they are usually not even compatible between minor releases (e.g. 2.6 vs 2.7).
However, since you usually have the .py files, too, python will automatically compile them for the currently used version.