[issue5856] Minor typo in traceback example

2009-04-27 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r72007, thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue5856] Minor typo in traceback example

2009-04-27 Thread DSM
DSM added the comment: There's more than a typo wrong with the example there-- "import traceback" doesn't bring format_list into scope, and so it should be traceback.format_list. Patch attached which turns the example into something which passes a doctest. -- keywords: +patch nosy: +ds

[issue5856] Minor typo in traceback example

2009-04-27 Thread Niels de Vos
New submission from Niels de Vos : The last example of traceback (found on release 2.6.2) contains a typo. >>> theError = IndexError('tuple indx out of range') >>> traceback.format_exception_only(type(theError), theError) ['IndexError: tuple