Produce .pyc without execution

Fred L. Drake, Jr. fdrake at acm.org
Fri Oct 29 11:37:55 EDT 1999


Gaetan Corneau writes:
 > Is there a way to compile a module without executing it? Just check syntax
 > and produce the .pyc file?

  Look at the py_compile.py module in the standard library; this gives 
an example of how to do this.


  -Fred

--
Fred L. Drake, Jr.	     <fdrake at acm.org>
Corporation for National Research Initiatives




More information about the Python-list mailing list