.pyc files

Skip Montanaro skip at pobox.com
Mon Jan 27 18:02:08 EST 2003


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

A side effect of executing 

    import modname

is generally to create a modname.pyc file in the same directory as the
modname.py source.  If this isn't sufficient, check the docs for the
__import__() and compile() builtins.

Skip





More information about the Python-list mailing list