{{ message }}
[3.14] gh-146056: Fix repr() for lists and tuples containing NULLs (GH-146129) (alt)#146204
Closed
serhiy-storchaka wants to merge 3 commits into
Closed
[3.14] gh-146056: Fix repr() for lists and tuples containing NULLs (GH-146129) (alt)#146204serhiy-storchaka wants to merge 3 commits into
serhiy-storchaka wants to merge 3 commits into
Conversation
pythonGH-146129) (cherry picked from commit 0f2246b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
vstinner
reviewed
Mar 20, 2026
vstinner
left a comment
Member
There was a problem hiding this comment.
I don't think that this hack is needed. I would prefer to only change tuple_repr() and list_repr().
Sorry, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.
(cherry picked from commit 0f2246b)
This is an alternative to #146155 which only fixes
PyUnicodeWriter_WriteRepr()for internal use, leaving users with the broken variant.📚 Documentation preview 📚: https://cpython-previews--146204.org.readthedocs.build/