bpo-41031: Match C and Python code formatting of unprintable exceptio… by iritkatriel · Pull Request #28139 · python/cpython · GitHub
Skip to content

bpo-41031: Match C and Python code formatting of unprintable exceptio… - #28139

Merged
serhiy-storchaka merged 4 commits into
python:mainfrom
iritkatriel:bpo-41031
Sep 5, 2021
Merged

serhiy-storchaka merged 4 commits into
python:mainfrom
iritkatriel:bpo-41031

Conversation

@iritkatriel

@iritkatriel iritkatriel commented Sep 3, 2021

Copy link
Copy Markdown
Member

…ns and exceptions in the main module.

https://bugs.python.org/issue41031

Comment thread Lib/test/test_sys.py Outdated
Comment thread Lib/test/test_sys.py Outdated
Comment thread Lib/test/test_sys.py
Comment thread Lib/test/test_sys.py Outdated
Comment thread Lib/traceback.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The 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?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The information is duplicated because the exception is printed separately.

@iritkatriel

Copy link
Copy Markdown
Member Author

Thanks @serhiy-storchaka .

@pablogsal @ambv do you want to backport this? It’s a very minor thing, but keeping the code aligned to make other back ports easier may be a consideration.

@ambv

ambv commented Sep 8, 2021

Copy link
Copy Markdown
Contributor

@iritkatriel
iritkatriel deleted the bpo-41031 branch November 5, 2021 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants