Skip to content

Commit 2efd9fb

Browse files
committed
add whats'new entry and news entry
1 parent b7454fb commit 2efd9fb

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

Doc/whatsnew/3.15.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,16 @@ tarfile
174174
traceback
175175
----------
176176

177-
* The keyword only argument ``show_lines=True`` is added to all functions and
178-
methods formatting or printing traceback. You can suppress the display of
179-
source code lines in the traceback by passing ``show_lines=False``.
180-
(Contributed by Inada Naoki in TBD).
177+
* Add new ``show_lines`` and ``recent_first`` keyword only arguments to
178+
the :mod:`traceback` functions.
179+
180+
The ``show_lines`` argument controls whether source code lines are displayed.
181+
It is default to ``True``.
182+
183+
The ``recent_first`` argument controls whether the most recent frames are
184+
displayed first or last in the traceback. It affects wheher the exception
185+
is displayed at the top or bottom of the traceback. It is default to ``False``.
186+
(Contributed by Inada Naoki in :gh:`135751`)
181187

182188

183189
zlib
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Add *show_lines* and *recent_first* parameters to APIs in :mod:`traceback`.
2+
Contributed by Inada Naoki.

0 commit comments

Comments
 (0)