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
PyArg_ParseTuple problem with 'L' format #38318
Comments
PyArg_ParseTuple(tup, "B", &value) will raise 'Bad This problem probably exists since 2.2. |
Logged In: YES I can replicate this bug with the "L" format but not with |
Logged In: YES The PyLong_AsLongLong function (in Objects/longobject.c) PyErr_SetString(PyExc_TypeError, "an integer is required"). This would also make it consistent with PyInt_AsLong in |
Logged In: YES I agree that the proposed double-type check is redundant. Fixed in |
Logged In: YES Turns out that this approach breaks cases where test_capi.py 1.8.2.2 |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: