Repository navigation
Some Unicode format specifiers are incorrect #146615
Copy link
Copy link
Closed
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Mar 29, 2026 - added a commit that references this issue
on Mar 29, 2026 - addedinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)extension-modulesC modules in the Modules dirC modules in the Modules dir
on Mar 29, 2026 Wow, there were so many of them! No way we could pick all of them one by one. Thank you for your great work, @sunmy2019.
Reacted by sunmy2019- added a commit that references this issue
on Mar 30, 2026 - added a commit that references this issue
on Mar 31, 2026 22 remaining items
- added a commit that references this issue
on Apr 1, 2026 I added 2 PRs for what is missing.
These two last PRs have been merged, so I close the issue. Thanks @sunmy2019 for your fixes!
Reacted by sunmy2019- added 5 commits that reference this issue
on Apr 16, 2026 - added 5 commits that reference this issue
on Apr 25, 2026
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Bug report
Bug description:
Inspired by #146578, I wrote a checker to check all unicode format strings.
There are 2 kinds of errors.
Most of the changes are
%d<->%ldforintandPy_ssize_t.I opened an draft PR #146616 containing only the fixes to display what could be changed. We can discuss and cherry pick some fixes in that PR.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
Python/directory #146619Objects/directory #146620