Skip to content

Conversation

@orenmn
Copy link
Contributor

@orenmn orenmn commented Sep 13, 2017

@orenmn
Copy link
Contributor Author

orenmn commented Sep 13, 2017

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__``
Copy link
Member

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
Copy link
Member

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()?

Copy link
Contributor Author

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()?

Copy link
Member

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.

@orenmn
Copy link
Contributor Author

orenmn commented Sep 13, 2017

sorry for the trouble, and thanks for your patience, Serhiy

@serhiy-storchaka serhiy-storchaka added needs backport to 3.6 type-bug An unexpected behavior, bug, or error labels Sep 13, 2017
@miss-islington
Copy link
Contributor

Thanks @orenmn for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 13, 2017
…in case of an exception with a bad __module__ attribute. (pythonGH-3539) (cherry picked from commit f6e61df)
@bedevere-bot
Copy link

GH-3556 is a backport of this pull request to the 3.6 branch.

serhiy-storchaka pushed a commit that referenced this pull request Sep 14, 2017
…in case of an exception with a bad __module__ attribute. (GH-3539) (#3556) (cherry picked from commit f6e61df)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

6 participants