mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Remove sys.exc_type, sys.exc_value, sys.exc_traceback
This commit is contained in:
parent
fc85c92a85
commit
ac3625fcb9
16 changed files with 36 additions and 58 deletions
|
@ -203,9 +203,7 @@ def _some_str(value):
|
|||
|
||||
|
||||
def print_exc(limit=None, file=None):
|
||||
"""Shorthand for 'print_exception(sys.exc_type, sys.exc_value, sys.exc_traceback, limit, file)'.
|
||||
(In fact, it uses sys.exc_info() to retrieve the same information
|
||||
in a thread-safe way.)"""
|
||||
"""Shorthand for 'print_exception(*sys.exc_info(), limit, file)'."""
|
||||
if file is None:
|
||||
file = sys.stderr
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue