We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90ea648 commit c323698Copy full SHA for c323698
toolz/itertoolz.py
@@ -728,7 +728,7 @@ def partition_all(n, seq):
728
# https://github.com/pytoolz/toolz/issues/387
729
# We can employ modified binary search here to speed things up from O(n) to O(log n)
730
# Binary search from CPython's bisect module, modified for identity testing.
731
- lo, hi = 0, len(prev)
+ lo, hi = 0, n
732
while lo < hi:
733
mid = (lo + hi) // 2
734
if prev[mid] is no_pad:
0 commit comments