Skip to content

Conversation

BobTheBuidler
Copy link
Contributor

This PR modifies TupleGet.__init__ to automatically convert negative indexes to positive indexes instead of crashing at the assert

This won't change functionality on its own, since none of the existing calling locations can pass a negative value, but will allow us to pass negative values in #19972 so I think we should consider this PR a prerequisite to that one

BobTheBuidler and others added 2 commits October 2, 2025 14:07
This PR modifies `TupleGet.__init__` to automatically convert negative indexes to positive indexes instead of crashing at the assert

This won't change functionality on its own, since none of the existing calling locations can pass a negative value, but will allow us to pass negative values in python#19972 so I think we should consider this PR a prerequisite to that one
@BobTheBuidler
Copy link
Contributor Author

I won't add any tests to this PR but I'll ensure #19972 tests both the positive and negative case before we merge

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.

2 participants