Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Python 2および3は、バイトコード(pyoおよびpyc)に下位互換性がありますか?
Python3でpython2pyo&pycファイルを実行できますか?
いいえ、通常、マイナーリリース間での互換性すらありません(たとえば、2.6と2.7)。 ただし、通常は.pyファイルもあるため、Pythonは現在使用されているバージョン用にそれらを自動的にコンパイルします。