[Tutor] Out of range
Adam Vardy
Adam Vardy <anvardy@roadrunner.nf.net>
Tue Feb 4 14:42:02 2003
Tuesday, February 4, 2003, 3:30:31 PM, you wrote:
>> If its defined in a function then you can't see it outside of
>> that function. You need to use a debugger to stop execution inside
>> the function and print it in the debugger(IDLE's debugger or
>> pdb will both do that happily)
Is there a command I can add in my program that will do this? I
presume that hoping a debugger to stop in the right place by chance is
not quite effective.
Oh and, what happens if the function runs a second time? Are the
variables like they were before?