开发者

How much does importing entire modules such as wxpython effect the size of the application when built using py2app?

Does using, for example, i开发者_运维百科mport TextCrtl from wx make the application smaller when built as a stand alone app?


Whether you import a module, or import something from a module, the entire module is always executed. The only difference is what is added to the namespace.

Here's a nice SO answer on this subject: Does "from-import" exec the whole module?

So the answer is no, the entire module will always be included.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜