mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-41031: Match C and Python code formatting of unprintable exceptions and exceptions in the __main__ module. (GH-28139)
This commit is contained in:
parent
b01fd533fe
commit
9e31b3952f
6 changed files with 55 additions and 14 deletions
|
@ -169,7 +169,7 @@ def _some_str(value):
|
|||
try:
|
||||
return str(value)
|
||||
except:
|
||||
return '<unprintable %s object>' % type(value).__name__
|
||||
return '<exception str() failed>'
|
||||
|
||||
# --
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue