Skip to content

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Apr 11, 2024

_PyCFunction_CAST(faulthandler_unregister_py), METH_VARARGS|METH_KEYWORDS,
PyDoc_STR("unregister(signum): unregister the handler of the signal "
"'signum' registered by register()")},
_PyCFunction_CAST(faulthandler_unregister_py), METH_VARARGS,
Copy link
Member Author

Choose a reason for hiding this comment

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

It was a bug. The function does not support keyword arguments. It was an undefined behavior.

@serhiy-storchaka serhiy-storchaka merged commit 245e426 into python:main Apr 12, 2024
@serhiy-storchaka serhiy-storchaka deleted the faulthandler-signatures branch April 12, 2024 10:14
@serhiy-storchaka serhiy-storchaka added the needs backport to 3.12 only security fixes label Apr 12, 2024
@miss-islington-app
Copy link

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 12, 2024
…ule (pythonGH-117771)

(cherry picked from commit 245e426)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Apr 12, 2024

GH-117806 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Apr 12, 2024
serhiy-storchaka added a commit that referenced this pull request Apr 12, 2024
…dule (GH-117771) (GH-117806)

(cherry picked from commit 245e426)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants