.pyc files

Peter Hansen peter at engcorp.com
Tue Jan 28 00:04:03 CET 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')"


More information about the Python-list mailing list