Repository navigation
Conversation
I wasn't sure about triple quote. Anyway, I just applied your suggestions. |
|
This PR is stale because it has been open for 90 days with no activity. |
…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).
6a26910 to
e53aa12
Compare
|
I rebased the PR on the main branch. In September, I proposed adding new conversion formats (#157685), but they didn't convince anymore: see https://discuss.python.org/t/add-r-conversion-to-f-string-and-str-format-to-format-error-messages/109098/12. So I prefer to abandon my idea and move back to my initial plan to replacing @johnslavik: Sorry, I reverted changes to use triple-quote. I came back to my initial PR coding style. |
|
@encukou @serhiy-storchaka: So are you ok with my plan to simply replace |
|
I'm -0 on this. I don't think it helps human readers too much. |
%swith f-string{name!r}.'%U'with%R.%.50sor%.100swith%s(PEP 737).