Is there something similar to `set -v` of bash in python

Ned Batchelder ned at nedbatchelder.com
Sat Sep 17 18:28:27 EDT 2016


On Saturday, September 17, 2016 at 4:41:32 PM UTC-4, Peng Yu wrote:
> >     python -m trace -t yourprogram.py
> 
> If I want to add some command in yourprogram.py to show the commands
> used it instead of calling trace from the command line, can it be
> done?

I don't know of a way to do that, but it might be possible.

--Ned.



More information about the Python-list mailing list