Program, Application, and Software

Steve Holden steve at
Fri Nov 19 05:19:19 CET 2010

On 11/18/2010 7:57 PM, Martin Gregorie wrote:
> .pyc files are an optional extra: in a *nix environment they are not 
> produced if you use a hash-bang line to execute the source file: they 
> only appear if you run the source with a "python" command.
Close, but no cigar. They are only created (assuming file permissions
permit) when the module is *imported*.

Steve Holden           +1 571 484 6266   +1 800 494 3119
PyCon 2011 Atlanta March 9-17
See Python Video!
Holden Web LLC       

More information about the Python-list mailing list