Skip to content

Commit c323698

Browse files
committed
len(prev) == n
1 parent 90ea648 commit c323698

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toolz/itertoolz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ def partition_all(n, seq):
728728
# https://github.com/pytoolz/toolz/issues/387
729729
# We can employ modified binary search here to speed things up from O(n) to O(log n)
730730
# Binary search from CPython's bisect module, modified for identity testing.
731-
lo, hi = 0, len(prev)
731+
lo, hi = 0, n
732732
while lo < hi:
733733
mid = (lo + hi) // 2
734734
if prev[mid] is no_pad:

0 commit comments

Comments
 (0)