[Tutor] Loop-checking question

Alan Gilfoy agilfoy at frontiernet.net
Sat May 12 16:15:03 CEST 2007

My programs often have long, detailed loops in them, and would like  
to, as I'm executing the loop, view what part of the loop Python is  
currently processing.

Thus, if my program gets stuck in one part of the loop, I would see that.
Thus, if one part of my loop is never triggered, I would see that.

I could use, within my loop, print 'I am here, at part X of the loop',  
but I believe that would be far to clunky to put in every section of  
my program's loop(s).
"Computers were the first God-Satan collaboration project."
"Blind faith in bad leadership is not patriotism."

"One of the most horrible features of war is that all the war-propaganda, all
the screaming and lies and hatred, comes invariably from people who are not
fighting."-George Orwell, _Homage to Catalonia

More information about the Tutor mailing list