[Python-Dev] Running a module as a script
theller at python.net
Thu Sep 30 16:31:22 CEST 2004
Aahz <aahz at pythoncraft.com> writes:
> On Thu, Sep 30, 2004, Nick Coghlan wrote:
>> The allowed modules are those whose associated source file meet the
>> normal rules for a command line script. I believe that means .py
>> and .pyc files only (e.g. "python -m profile" works, but "python -m
>> hotshot" does not).
> Not positive, but if you're allowing .pyc, you should probably allow
> .pyo if optimize mode is on.
Plus .pyw, on Windows.
More information about the Python-Dev