import overwrites __name__
Stephen Hansen
apt.shansen at gmail.com
Fri May 8 17:25:45 EDT 2009
>
> So what leads to the behavior that the .pyc is not created?
>
PYC's are only generated on import, they're never made for the main script.
I personally like to keep my 'main script' very small. Largely just
something which imports other modules and sends them along on their
business.
--S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090508/263ba04b/attachment-0001.html>
More information about the Python-list
mailing list