Re: equivalent of bash "set -x" in Python

2010-09-26 Thread TP
James Mills wrote: > What do you mean by "command" ? For example, print statements, but it could extend to class definitions, etc. I am going to examine the solution given by Chris. Cheers, Julien -- python -c "print ''.join([chr(154 - ord(c)) for c in '*9(9&(18%.\ 9&1+,\'Z4(55l4('])" "When

Re: equivalent of bash "set -x" in Python

2010-09-26 Thread Chris Rebert
On Sun, Sep 26, 2010 at 3:17 AM, TP wrote: > 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? Not exactly. However, defining an appropri

Re: equivalent of bash "set -x" in Python

2010-09-26 Thread James Mills
On Sun, Sep 26, 2010 at 8:17 PM, TP wrote: > 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? What do you mean by "command" ? cheers Ja

equivalent of bash "set -x" in Python

2010-09-26 Thread TP
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? Thanks Julien -- python -c "print ''.join([chr(154 - ord(c)) for c in '*9(9&(18%.\ 9&1+,\'Z4(5