The usage of -m option of python

Tom P werotizy at freent.dd
Wed Mar 27 13:06:04 EDT 2013


On 03/18/2013 10:17 PM, Peng Yu wrote:
> Hi,
>
> I don't quite understand how -m option is used. And it is difficult to
> search for -m in google. Could anybody provide me with an example on
> how to use this option? Thanks!
>
>         -m module-name
>                Searches sys.path for the named module and runs the
> corresponding .py file as a script.
>

The most practical use I know is to run the debug program..
python -mpdb yourprogramm.py arguments..






More information about the Python-list mailing list