This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zopieux
Recipients docs@python, zopieux
Date 2015-11-06.21:34:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1446845666.11.0.0803768990935.issue25573@psf.upfronthosting.co.za>
In-reply-to
Content
https://docs.python.org/3.5/library/traceback.html#traceback-examples
See second code sample and its sample output. According to the docs, the call:

  print(repr(traceback.extract_tb(exc_traceback)))

is supposed to print something that looks like an array with only strings; that is what the doc sample output states:

  [('<doctest...>', 10, '<module>', 'lumberjack()'),

But actually, in 3.5+, this call outputs the repr() of a list of FrameSummary instances that do not go further in repr()esenting their state:

  [<FrameSummary file <ipython-input-61-3e63d7daea82>, line 10 in <module>>,

By looking at the docs I thought I was able to get a nice string representation of a FrameSummary. I actually have to format it myself. It should be reflected in the doc sample output.
History
Date User Action Args
2015-11-06 21:34:26zopieuxsetrecipients: + zopieux, docs@python
2015-11-06 21:34:26zopieuxsetmessageid: <1446845666.11.0.0803768990935.issue25573@psf.upfronthosting.co.za>
2015-11-06 21:34:26zopieuxlinkissue25573 messages
2015-11-06 21:34:25zopieuxcreate