[New-bugs-announce] [issue16657] traceback.format_tb incorrect docsting

Marius Gedminas report at bugs.python.org
Mon Dec 10 14:33:20 CET 2012

New submission from Marius Gedminas:

The docstring for traceback.format_tb says

  """A shorthand for 'format_list(extract_stack(f, limit))."""

which is incorrect -- it's actually a shorthand for format_list(extract_tb(tb, limit)).

Patch attached.

components: Library (Lib)
files: fix-format_tb-docstring.patch
keywords: patch
messages: 177288
nosy: mgedmin
priority: normal
severity: normal
status: open
title: traceback.format_tb incorrect docsting
versions: Python 2.7, Python 3.5
Added file: http://bugs.python.org/file28276/fix-format_tb-docstring.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list