-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Indexable.range_to_index_and_count to not raise IndexError #10191
Fix Indexable.range_to_index_and_count to not raise IndexError #10191
Conversation
I'd add instead nilable |
That'd be more complicated for splatting the tuple. |
The problem with this is that now this method is inlined in every other method. Previously it was a different call. Can we maybe make two versions, one with a question mark? And a third one that yields. |
Is inlining so bad here? |
I just read @Sija 's suggestion, that's what I'd do to (and it's how it's done everywhere else) |
I let |
@straight-shoota It won't be needed to add all this boilerplate code ( |
|
Fixes #10170