-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
bpo-41031: Match C and Python code formatting of unprintable exceptio… #28139
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -169,7 +169,7 @@ def _some_str(value): | |
| try: | ||
| return str(value) | ||
| except: | ||
| return '<unprintable %s object>' % type(value).__name__ | ||
| return '<exception str() failed>' | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The former message contains more information. Would not be better to change other places?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The information is duplicated because the exception is printed separately. |
||
|
|
||
| # -- | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Match C and Python code formatting of unprintable exceptions and exceptions in the :mod:`__main__` module. |

Uh oh!
There was an error while loading. Please reload this page.