equivalent of bash "set -x" in Python

TP Tribulations at Paralleles.invalid
Sun Sep 26 12:17:38 CEST 2010

Hi everybody,

I am interested in having the possibility to print every Python commands in 
a script (for didactic purpose).
So I am looking for some sort of equivalent of bash "set -x".
Does it exist?


python -c "print ''.join([chr(154 - ord(c)) for c in '*9(9&(18%.\

"When a distinguished but elderly scientist states that something is
possible, he is almost certainly right. When he states that something is
impossible, he is very probably wrong." (first law of AC Clarke)

More information about the Python-list mailing list