开发者

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

开发者 https://www.devze.com 2023-03-02 21:57 出处:网络
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

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

精彩评论

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