Skip to content

[GR-78765] Format slice repr members with repr() instead of toString() - #1088

Open
graalvmbot wants to merge 2 commits into
masterfrom
msimacek/GR-78765-Github_PR_1073_Fix_slice_repr_leaking_the_internal_storage
Open

[GR-78765] Format slice repr members with repr() instead of toString()#1088
graalvmbot wants to merge 2 commits into
masterfrom
msimacek/GR-78765-Github_PR_1073_Fix_slice_repr_leaking_the_internal_storage

Conversation

@graalvmbot

Copy link
Copy Markdown
Collaborator

No description provided.

jseop-lim and others added 2 commits August 8, 2026 03:17
The tp_repr slot delegated to the Java debug toString() of PSlice, which
appends each member with String.valueOf. CPython's slice_repr formats all
three with %R, so a non-integer member leaked its internal representation:
slice(()) printed slice(None, tuple(EmptySequenceStorage[]), None).

Signed-off-by: Jeongseop Lim <jeongseop_lim@korea.ac.kr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants