Python程序总是开源吗? [英] Python programs always open source?

查看:143
本文介绍了Python程序总是开源吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我想知道Python程序是否总是需要在程序本身中包含源代码

。我问这个是因为我不希望我的程序是开源的,所以我见过的所有Python程序包括

源代码。


是否可以使用字节码制作可执行文件?


提前致谢!


GF


-

通过免费的Usenet帐户从 http://www.teranews.com

Hi,

I was wondering if Python programs always need to include the source code
with the program itself. I''m asking this because I don''t want my program to
be open-source and so far all the Python programs I''ve seen included the
source code.

Is it possible to make an executable with only bytecode?

Thanks in advance!

GF

--
Posted via a free Usenet account from http://www.teranews.com

推荐答案

Guy Fawkes写道:
Guy Fawkes wrote:

我想知道Python程序是否总是需要在程序本身中包含源代码

。我问这个是因为我不希望我的程序是开源的,所以我见过的所有Python程序包括

源代码。
I was wondering if Python programs always need to include the source code
with the program itself. I''m asking this because I don''t want my program to
be open-source and so far all the Python programs I''ve seen included the
source code.



您可以包含源代码,但仍然不是开源的;如果python程序有许可证禁止

修改或重新分发源代码,那么这不是很好的。

You can include the source code but still not be open source; it''s not
unusual for python programs to have licenses prohibiting the
modification or redistribution of the source code.


是否可以只使用字节码生成可执行文件?
Is it possible to make an executable with only bytecode?



您可以导入并使用.pyc文件,但需要注意几点。然而,他们是非常琐碎的拆解,所以它很少值得;只需

清楚许可证中允许的内容(以及不允许的内容)。

You can import and use the .pyc files with a few caveats. They''re
pretty trivial to disassemble though, so it''s rarely worth it; just
make clear what''s allowed (and what''s not allowed) in your license.


"盖伊福克斯 < sp *********** @ spoilthechild.comwrites:
"Guy Fawkes" <sp***********@spoilthechild.comwrites:

我想知道Python程序是否总是需要包含源

代码与程序本身。我问这个是因为我不想要/ b $ b我的程序是开源的,到目前为止所有的Python程序我已经看到包括了源代码。
I was wondering if Python programs always need to include the source
code with the program itself. I''m asking this because I don''t want
my program to be open-source and so far all the Python programs I''ve
seen included the source code.



您可以根据您选择的任何条款,将自己的工作许可给任何您喜欢的人。工作的源代码对于用户执行

免费软件许可是必要的,但这并不意味着分发源

代码必须授予免费软件许可。


你是对的,根据自由软件许可证,有大量的Python代码可供使用

。没有人可以强迫你加入我们,但

欢迎你。


-

\ 我的女朋友有一张大号床;我有一个宫廷小丑|

` \大小的床。它是红色和绿色的,上面有铃铛,结束了|

_o__)蜷缩起来。 - Steven Wright |

Ben Finney

You can license your own work to anyone you like, under any terms you
choose. The source code to a work is necessary for users to exercise a
free software license, but that doesn''t mean that distributing source
code necessarily grants a free software license.

You''re right that there is a great amount of Python code available
under free software licenses. No-one can force you to join us, but
you''re welcome to.

--
\ "My girlfriend has a queen sized bed; I have a court jester |
`\ sized bed. It''s red and green and has bells on it, and the ends |
_o__) curl up." -- Steven Wright |
Ben Finney


说到字节码,如何创建它?

Ben Finney写道:
Speaking of the bytecode, how does one create it?
Ben Finney wrote:

" Guy Fawkes" < sp *********** @ spoilthechild.comwrites:
"Guy Fawkes" <sp***********@spoilthechild.comwrites:

我想知道Python程序是否总是需要包含源

代码与程序本身。我问这个是因为我不想要/ b $ b我的程序是开源的,到目前为止所有的Python程序我已经看到包括了源代码。
I was wondering if Python programs always need to include the source
code with the program itself. I''m asking this because I don''t want
my program to be open-source and so far all the Python programs I''ve
seen included the source code.



您可以根据您选择的任何条款将自己的工作许可给任何您喜欢的人。工作的源代码对于用户执行

免费软件许可是必要的,但这并不意味着分发源

代码必须授予免费软件许可。


你是对的,根据自由软件许可证,有大量的Python代码可供使用

。没有人可以强迫你加入我们,但

欢迎你。


-

\ 我的女朋友有一张大号床;我有一个宫廷小丑|

` \大小的床。它是红色和绿色的,上面有铃铛,结束了|

_o__)蜷缩起来。 - Steven Wright |
Ben Finney


You can license your own work to anyone you like, under any terms you
choose. The source code to a work is necessary for users to exercise a
free software license, but that doesn''t mean that distributing source
code necessarily grants a free software license.

You''re right that there is a great amount of Python code available
under free software licenses. No-one can force you to join us, but
you''re welcome to.

--
\ "My girlfriend has a queen sized bed; I have a court jester |
`\ sized bed. It''s red and green and has bells on it, and the ends |
_o__) curl up." -- Steven Wright |
Ben Finney


这篇关于Python程序总是开源吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆