Uh oh!
There was an error while loading. Please reload this page.
gh-129173: simplify PyCodec_XMLCharRefReplaceErrors logic - #129894
Conversation
picnixz
commented
Feb 9, 2025
Huh, I probably messed up my index somewhere. Will fix it later or tomorrow. |
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.
Uh oh!
There was an error while loading. Please reload this page.
xmlcharrefreplace handler.xmlcharrefreplace handler…refreplace-handler-129173
…refreplace-handler-129173
encukou
commented
Feb 26, 2025
I filed my suggestion as https://github.com/picnixz/cpython/pull/1/files |
…ler-129173 cpython#129894: just get the log10
picnixz
commented
Mar 1, 2025
I've applied your suggestion and tweaked it a bit. By the way, I observe that I forgot to remove a "object is ready" comment. Do you mind that after this PR and the following one for backslashreplace, I skim through the code base to remove the un-necessary related comments? there are a few occurrences of saying that some Unicode object is "ready" |
encukou
commented
Mar 3, 2025
That's a style change, which we generally only do when touching neighboring code. How many are there? I'd need to review each of those removals in context. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Apart from those already in codecs.c that I forgot to remove, not many: Lines 594 to 596 in a85eeb9 Lines 655 to 661 in a85eeb9 Lines 357 to 363 in a85eeb9 Lines 1821 to 1824 in a85eeb9 Lines 311 to 315 in a85eeb9 Lines 505 to 513 in a85eeb9 Lines 252 to 259 in a85eeb9 The |
encukou
commented
Mar 3, 2025
You might want to split the comment removals to 5 PRs (each to be seen by different subject experts), and combine them with removing the remaining calls to Careful, the one in |
picnixz
commented
Mar 3, 2025
Oups, you're right. |
Uh oh!
There was an error while loading. Please reload this page.
xmlcharrefreplace handlerPyCodec_XMLCharRefReplaceErrors logicpicnixz
commented
Mar 3, 2025
I really want to be able to preview the commit message when I'm enabling auto-merge... |
_PyUnicodeError_GetParamsand extract complex logic into separate functions #129173