[Tutor] A simple Question...
Kent Johnson
kent37 at tds.net
Tue Oct 2 13:59:12 CEST 2007
bhaaluu wrote:
> On 10/2/07, Kent Johnson <kent37 at tds.net> wrote:
>> traceback.print_stack() prints the stack trace to the current point of
>> execution. No forced error or drama needed :-)
>>
>> Kent
>
> Exactly how is this used, please?
>
> Traceback (most recent call last):
> File "print_stack.py", line 160, in ?
> print traceback.print_stack()
> NameError: name 'traceback' is not defined
import traceback
traceback.print_stack()
Kent
More information about the Tutor
mailing list