How to output the commands that are executed in a python script?

Peng Yu pengyu.ut at
Mon Apr 5 22:38:12 EDT 2010

I want to show what commands have been executed when I run a python
script. Is there an option which can instruct python to print the
commands automatically?

(If you are familiar with R, what I am asking is essentially
options(echo=T) in R.)


More information about the Python-list mailing list