8000 gh-132629: Deprecate acception out of range values for unsigned integers in PyArg_Parse by serhiy-storchaka · Pull Request #132630 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-132629: Deprecate acception out of range values for unsigned integers in PyArg_Parse #132630

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

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix merge error.
  • Loading branch information
serhiy-storchaka committed Apr 29, 2025
commit be4f26beb7bdab07985753dc3177c9628d7178a6
12 changes: 4 additions & 8 deletions Lib/test/clinic.test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1448,6 +1448,7 @@ test_unsigned_long_converter(PyObject *module, PyObject *const *args, Py_ssize_t
{
Py_ssize_t _bytes = PyLong_AsNativeBytes(args[2], &c, sizeof(unsigned long),
Py_ASNATIVEBYTES_NATIVE_ENDIAN |
Py_ASNATIVEBYTES_ALLOW_INDEX |
Py_ASNATIVEBYTES_UNSIGNED_BUFFER);
if (_bytes < 0) {
goto exit;
Expand All @@ -1470,10 +1471,7 @@ test_unsigned_long_converter(PyObject *module, PyObject *const *args, Py_ssize_t
static PyObject *
test_unsigned_long_converter_impl(PyObject *module, unsigned long a,
unsigned long b, unsigned long c)
/*[clinic end generated code: output=f2c4399c71720c4d input=f450d94cae1ef73b]*/
=======
/*[clinic end generated code: output=d74eed227d77a31b input=f450d94cae1ef73b]*/
>>>>>>> main
/*[clinic end generated code: output=1bbf5620093cc914 input=f450d94cae1ef73b]*/


/*[clinic input]
Expand Down Expand Up @@ -1580,6 +1578,7 @@ test_unsigned_long_long_converter(PyObject *module, PyObject *const *args, Py_ss
{
Py_ssize_t _bytes = PyLong_AsNativeBytes(args[2], &c, sizeof(unsigned long long),
Py_ASNATIVEBYTES_NATIVE_ENDIAN |
Py_ASNATIVEBYTES_ALLOW_INDEX |
Py_ASNATIVEBYTES_UNSIGNED_BUFFER);
if (_bytes < 0) {
goto exit;
Expand All @@ -1604,10 +1603,7 @@ test_unsigned_long_long_converter_impl(PyObject *module,
unsigned long long a,
unsigned long long b,
unsigned long long c)
/*[clinic end generated code: output=ad412e0d5dd94ac4 input=a15115dc41866ff4]*/
=======
/*[clinic end generated code: output=5ca4e4dfb3db644b input=a15115dc41866ff4]*/
>>>>>>> main
/*[clinic end generated code: output=582a6623dc845824 input=a15115dc41866ff4]*/


/*[clinic input]
Expand Down
Loading
0