You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is expected that you cannot negative-index the PaginatedList due to its inability to know its length until it is full. However, it is still possible to use the negative index if at least one page of results has been loaded. When this happens, the list returns the last value it has loaded (which is not necessarily the last value it can load).
Fixucfopen#305 by throwing
IndexError whenever a negative index is requested.
As a bonus, do the same when a slice is requested rather than when it's
used.
Describe the bug
It is expected that you cannot negative-index the PaginatedList due to its inability to know its length until it is full. However, it is still possible to use the negative index if at least one page of results has been loaded. When this happens, the list returns the last value it has loaded (which is not necessarily the last value it can load).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I am not allowed to use negative indexing (wishlist, I can use negative indexing :D)
Environment information (please complete the following information)
Additional context
I'll try my hand at fixing this.
The text was updated successfully, but these errors were encountered: