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

Lie Ryan lie.1296 at gmail.com
Tue Apr 6 05:11:02 CEST 2010


On 04/06/10 12:38, Peng Yu wrote:
> 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.)
> 

It's not exactly the same, but pdb (Python Debugger) can do something
similar.



More information about the Python-list mailing list