Skip to content

Allow NormalizedSlice as an indexer.#642

Open
kaushikcfd wants to merge 3 commits intomainfrom
fix_gh_633
Open

Allow NormalizedSlice as an indexer.#642
kaushikcfd wants to merge 3 commits intomainfrom
fix_gh_633

Conversation

@kaushikcfd
Copy link
Collaborator

@kaushikcfd kaushikcfd commented Mar 4, 2026

Note:

  • The easy parts were done by Claude. I asked it: "Fix this issue <https://github.com/inducer/pytato/issues/633>". I only fixed the types in the body of normalize_slice_len, which I figured was easier than telling Claude about the _is_non_(negative|positive).

Closes #633.

Note that the "slice" class does not support subclassing hence we had to
add NormalizedSlice to ConvertibleToIndexExpr.
@kaushikcfd kaushikcfd requested review from inducer March 4, 2026 03:31
@kaushikcfd kaushikcfd changed the title Allow NormalizedSlice as an indexee. Allow NormalizedSlice as an indexer. Mar 4, 2026
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.

Normalized slice should be subclasses for slice.

1 participant