> > 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
-- http://mail.python.org/mailman/listinfo/python-list