File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -721,13 +721,14 @@ def partition_all(n, seq):
721721 prev = item
722722 if prev [- 1 ] is no_pad :
723723 try :
724- # If seq defines __len__, then we can quickly calculate where no_pad starts
724+ # If seq defines __len__, then
725+ # we can quickly calculate where no_pad starts
725726 yield prev [:len (seq ) % n ]
726727 except TypeError :
727728 # Get first index of no_pad without using .index()
728729 # 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.
730+ # Binary search from CPython's bisect module,
731+ # modified for identity testing.
731732 lo , hi = 0 , n
732733 while lo < hi :
733734 mid = (lo + hi ) // 2
You can’t perform that action at this time.
0 commit comments