Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Closed
sunmy2019 wants to merge 2 commits into
python:mainpython/cpython:mainfrom
sunmy2019:gh-146615sunmy2019/cpython:gh-146615Copy head branch name to clipboard
Closed

gh-146615: Fix format specifiers in error messages for consistency and correctness#146616
sunmy2019 wants to merge 2 commits into
python:mainpython/cpython:mainfrom
sunmy2019:gh-146615sunmy2019/cpython:gh-146615Copy head branch name to clipboard

Conversation

@sunmy2019

@sunmy2019 sunmy2019 commented Mar 29, 2026

Copy link
Copy Markdown
Member

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

picnixz commented Mar 29, 2026

Copy link
Copy Markdown
Member

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.