classification
Title: traceback.format_tb incorrect docsting
Type: Stage: resolved
Components: Library (Lib) Versions: Python 3.5, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: mgedmin, python-dev
Priority: normal Keywords: patch

Created on 2012-12-10 13:33 by mgedmin, last changed 2013-10-13 21:33 by python-dev. This issue is now closed.

Files
File name Uploaded Description Edit
fix-format_tb-docstring.patch mgedmin, 2012-12-10 13:33 patch review
Messages (3)
msg177288 - (view) Author: Marius Gedminas (mgedmin) * Date: 2012-12-10 13:33
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.
msg199807 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-10-13 21:31
New changeset e6ab0cd959a0 by Georg Brandl in branch '2.7':
Closes #16657: fix docstring of traceback.format_tb().
http://hg.python.org/cpython/rev/e6ab0cd959a0
msg199809 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-10-13 21:33
New changeset dcded8c7af89 by Georg Brandl in branch '3.3':
Closes #16657: fix docstring of traceback.format_tb().
http://hg.python.org/cpython/rev/dcded8c7af89
History
Date User Action Args
2013-10-13 21:33:43python-devsetmessages: + msg199809
2013-10-13 21:31:15python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg199807

resolution: fixed
stage: resolved
2012-12-10 13:33:20mgedmincreate