-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-31418: Fix an assertion failure in case of an exception with a bad __module__ attribute #3539
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
bpo-31418: Fix an assertion failure in case of an exception with a bad __module__ attribute #3539
Conversation
feel free to remove the NEWS.d item if you don't think it is necessary. |
@@ -0,0 +1,2 @@ | |||
Fix an assertion failure in case of an exception with a bad ``__module__`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"in PyErr_WriteUnraisable()"
@@ -1,2 +1,2 @@ | |||
Fix an assertion failure in case of an exception with a bad ``__module__`` | |||
attribute. Patch by Oren Milman. | |||
Fix an assertion failure in `c.PyErr_WriteUnraisable()` in case of an |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is c.PyErr_WriteUnraisable()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://devguide.python.org/committing/#what-s-new-and-news-entries says:
(single backticks) in reST can be used to refer to objects in the documentation.
I thought this means that i should specify (inside single backticks) an object in the docs, according to how it appears in the docs (i.e. when pressing the Permalink to this definition
button - https://docs.python.org/3.7/c-api/exceptions.html#c.PyErr_WriteUnraisable).
so it should just be PyErr_WriteUnraisable()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it should be without "c." prefix.
sorry for the trouble, and thanks for your patience, Serhiy |
Thanks @orenmn for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6. |
…in case of an exception with a bad __module__ attribute. (pythonGH-3539) (cherry picked from commit f6e61df)
GH-3556 is a backport of this pull request to the 3.6 branch. |
https://bugs.python.org/issue31418