What are the limitations of distributing .pyc files?

前端 未结 3 820
滥情空心
滥情空心 2020-12-01 18:13

I\'ve started working on a commercial application in Python, and I\'m weighing my options for how to distribute the application.

Aside from the obvious (distribute s

3条回答
  •  無奈伤痛
    2020-12-01 19:13

    For example, would a file generated with Python 3.1.5 be compatible with Python 3.2.x?

    No.

    Or would a .pyc file generated with Python 2.7.3 be compatible with a Python 3.x release?

    Doubly no.

    I'm considering distributing just the .pyc files without their corresponding .py sources.

    Python bytecode is high-level and trivially decompilable.

提交回复
热议问题