mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
[3.13] gh-130250: fix regression in traceback.print_last (GH-130318) (#130325)
gh-130250: fix regression in traceback.print_last (GH-130318)
(cherry picked from commit 6c982aeb54
)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
This commit is contained in:
parent
6c92424b94
commit
d172415a4e
4 changed files with 16 additions and 8 deletions
|
@ -111,14 +111,14 @@ Module-Level Functions
|
|||
|
||||
.. function:: print_exc(limit=None, file=None, chain=True)
|
||||
|
||||
This is a shorthand for ``print_exception(sys.exception(), limit, file,
|
||||
chain)``.
|
||||
This is a shorthand for ``print_exception(sys.exception(), limit=limit, file=file,
|
||||
chain=chain)``.
|
||||
|
||||
|
||||
.. function:: print_last(limit=None, file=None, chain=True)
|
||||
|
||||
This is a shorthand for ``print_exception(sys.last_exc, limit, file,
|
||||
chain)``. In general it will work only after an exception has reached
|
||||
This is a shorthand for ``print_exception(sys.last_exc, limit=limit, file=file,
|
||||
chain=chain)``. In general it will work only after an exception has reached
|
||||
an interactive prompt (see :data:`sys.last_exc`).
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue