Compiling main script into .pyc

bob gailer bgailer at gmail.com
Thu Jan 16 21:56:02 EST 2014


On 1/16/2014 8:01 PM, Sam wrote:
> One thing I observe about python byte-code compiling is that the main script does not gets compiled into .pyc. Only imported modules are compiled into .pyc.
>
> May I know how can I compile the main script into .pyc?
Duh? Just import it!



More information about the Python-list mailing list