[New-bugs-announce] [issue44030] Markup with_traceback code example
Terry J. Reedy
report at bugs.python.org
Tue May 4 06:24:38 EDT 2021
New submission from Terry J. Reedy <tjreedy at udel.edu>:
.../Doc/library/exceptions.rst, lines 99-105 has
original ``SomeException`` had we allowed it to propagate to the caller.
tb = sys.exc_info()
The code example with no markup except indents does not work because without a new indent, the last line is merged with the preceding one as part of the same paragraph.
traceback of the original SomeException had we allowed it to propagate to the caller.
tb = sys.exc_info() raise OtherException(…).with_traceback(tb)
Note also the uneven line spacing, which is different for me here with Firefox that in the web page (also with Firefox). Something different is needed, but I do not know what.
assignee: docs at python
nosy: docs at python, terry.reedy
stage: needs patch
title: Markup with_traceback code example
versions: Python 3.10, Python 3.11, Python 3.9
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce