micklee74 at hotmail.com wrote: > This is an expected behaviour right? why is B.pyc not generated? PYC files are only generated for modules that are imported, not for toplevel scripts. also see: http://pyfaq.infogami.com/how-do-i-create-a-pyc-file </F>