.pyc files

Peter Hansen peter at engcorp.com
Mon Jan 27 18:04:03 EST 2003


Newt wrote:
> 
> Silly question:
> 
> From a command line, how do I create pyc files? I know I can do it from
> within IDLE, but I want to use a different editor (for other languages).

This just worked for compiling file "logger.py" in my temp folder:

python -c "import py_compile as p; p.compile('c:/temp/logger.py')"

-Peter




More information about the Python-list mailing list