Skip to content

gh-146615: Fix format specifiers in error messages for consistency and correctness#146616

Closed
sunmy2019 wants to merge 2 commits intopython:mainfrom
sunmy2019:gh-146615
Closed

gh-146615: Fix format specifiers in error messages for consistency and correctness#146616
sunmy2019 wants to merge 2 commits intopython:mainfrom
sunmy2019:gh-146615

Conversation

@sunmy2019
Copy link
Copy Markdown
Member

@sunmy2019 sunmy2019 commented Mar 29, 2026

There are 2 kinds of errors.

There are ~8 real mistakes.
Comply with C99 for va_list: https://en.cppreference.com/w/c/variadic/va_arg.html
Most of the changes are %d <-> %ld for int and Py_ssize_t.

@sunmy2019 sunmy2019 changed the title gh146615: Fix format specifiers in error messages for consistency and correctness gh-146615: Fix format specifiers in error messages for consistency and correctness Mar 29, 2026
@picnixz
Copy link
Copy Markdown
Member

picnixz commented Mar 29, 2026

I would suggest:

  • 1 PR for errors in testcapi* etc.
  • 1 PR for errors in Python/*
  • 1 PR for errors in Objects/*
  • 1 PR for errors in extension modules.

Or 1 PR for real mistakes, 1 PR for the rest.

@sunmy2019
Copy link
Copy Markdown
Member Author

@sunmy2019 sunmy2019 closed this Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants