diff -r 365b5e6163a6 Doc/library/traceback.rst --- a/Doc/library/traceback.rst Fri Jun 03 19:14:52 2016 +0000 +++ b/Doc/library/traceback.rst Fri Jun 03 17:00:47 2016 -0700 @@ -358,7 +358,7 @@ traceback.print_exception(exc_type, exc_value, exc_traceback, limit=2, file=sys.stdout) print("*** print_exc:") - traceback.print_exc() + traceback.print_exc(limit=2, file=sys.stdout) print("*** format_exc, first and last line:") formatted_lines = traceback.format_exc().splitlines() print(formatted_lines[0]) @@ -404,9 +404,9 @@ ' File "", line 7, in bright_side_of_death\n return tuple()[0]\n', 'IndexError: tuple index out of range\n'] *** extract_tb: - [('', 10, '', 'lumberjack()'), - ('', 4, 'lumberjack', 'bright_side_of_death()'), - ('', 7, 'bright_side_of_death', 'return tuple()[0]')] + [, line 10 in >, + , line 4 in lumberjack>, + , line 7 in bright_side_of_death>] *** format_tb: [' File "", line 10, in \n lumberjack()\n', ' File "", line 4, in lumberjack\n bright_side_of_death()\n',