Skip to content

gh-135751: traceback: add recent_first and show_lines parameter #135752

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
  • Loading branch information
methane and Copilot authored Jun 20, 2025
commit 878ea1d9d819e68fc2664a3e686b2df2cfa041a8
3 changes: 1 addition & 2 deletions Doc/library/traceback.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ Module-Level Functions
:attr:`~BaseException.__cause__` or :attr:`~BaseException.__context__`
attributes of the exception) will be
printed as well, like the interpreter itself does when printing an unhandled
exception. If *show_lines* is ``False``, source code lines are not included
in the output.
exception.

If *show_lines* is false, source code lines are not included in the output.

Expand Down
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ traceback
It is default to ``True``.

The ``recent_first`` argument controls whether the most recent frames are
displayed first or last in the traceback. It affects wheher the exception
displayed first or last in the traceback. It affects whether the exception
is displayed at the top or bottom of the traceback. It is default to ``False``.
(Contributed by Inada Naoki in :gh:`135751`)

Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy