gh-137725: Convert faulthandler to Argument Clinic#137726
gh-137725: Convert faulthandler to Argument Clinic#137726vstinner merged 7 commits intopython:mainfrom
Conversation
|
I don't understand this test failure. |
|
cpython/Modules/faulthandler.c Lines 1330 to 1333 in a10152f Line 39 in a10152f |
|
Ah, and it seems that static PyObject *
foo(PyObject *self, PyObject *args)
{
unsigned int a;
if (!PyArg_ParseTuple(args, "I", &a)) {
return NULL;
}
printf("a: %u\n", a);
Py_RETURN_NONE;
}>>> foo(-1)
a: 4294967295Yuck. |
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
I fixed the Windows EXCEPTION constants by using |
|
Ok, the CI does now pass. The PR is now ready for a review :-) Sorry, I should have marked it as a draft in the beginning. |
serhiy-storchaka
left a comment
There was a problem hiding this comment.
This PR includes also some behavior changes (constants are positive, negative arguments rejected), so I think it may need a NEWS entry.
Or you can keep the old behavior and change it in the following PR.
These changes only concern private functions and private constants, so I consider that they should not be documented. End users are not impacted, these functions and constants are only used by tests. |
|
Merged, thanks for your very useful reviews! |
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.