<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
 So what leads to the behavior that the .pyc is not created?<br>
<div><div></div><div class="h5"></div></div></blockquote><div><br></div><div>PYC's are only generated on import, they're never made for the main script.</div><div><br></div><div>I personally like to keep my 'main script' very small. Largely just something which imports other modules and sends them along on their business.</div>

<div><br></div><div>--S</div></div>