Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否可以内嵌 int 代码编译或者支持 __main__.py #71

Open
rainzee opened this issue Jan 6, 2024 · 2 comments
Open

是否可以内嵌 int 代码编译或者支持 __main__.py #71

rainzee opened this issue Jan 6, 2024 · 2 comments

Comments

@rainzee
Copy link

rainzee commented Jan 6, 2024

int 文件直接暴露给用户留下了较大的风险敞口,同时也可能修改之后导致 Crash,Python 包内如果有 main.py 可以通过 python -m 的形式直接启动,这也是官方推荐的 execuable 做法,能够启用 main.py 的方案,让用户自己在内部集成启动方法,另外能否将 int 内代码直接写在 cpp 中直接编译从而不需要外部的 int

@David-xian66
Copy link

你要是熟悉cpp,直接改cpython其实来得更快

@yunluo
Copy link

yunluo commented Jul 18, 2024

其实可以自己直接改源代码编译实现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants