Uh oh!
There was an error while loading. Please reload this page.
gh-154610: Use repr() to format the attribute name in AttributeError - #154614
gh-154610: Use repr() to format the attribute name in AttributeError#154614vstinner wants to merge 3 commits into
Conversation
…Error
* In Python code, replace `%s` with f-string `{name!r}`.
* In C code, replace `'%U'` with `%R`.
* In C code, no longer truncate long type names:
replace `%.50s` or `%.100s` with `%s` (PEP 737).vstinner
commented
Jul 24, 2026
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
vstinner
commented
Jul 24, 2026
I wasn't sure about triple quote. Anyway, I just applied your suggestions. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
%swith f-string{name!r}.'%U'with%R.%.50sor%.100swith%s(PEP 737).