Lines Matching refs:slicelen
543 def randslice_from_slicelen(slicelen, listlen): argument
545 maxstart = listlen - slicelen
547 maxstep = (listlen - start) // slicelen if slicelen else 1
549 stop = start + slicelen * step
552 if control != slicelen:
563 slicelen = randrange(1, l+1) if l > 0 else 0
564 lslices[n] = randslice_from_slicelen(slicelen, l)
565 rslices[n] = randslice_from_slicelen(slicelen, l)
595 _, _, _, slicelen = slice_indices(s_small, small)
597 slicelen = randrange(1, small+1) if small > 0 else 0
598 s_small = randslice_from_slicelen(slicelen, small)
601 s_big = randslice_from_slicelen(slicelen, big)
700 slicelen = randrange(minlen, n+1)
701 return randslice_from_slicelen(slicelen, n)