Lines Matching refs:slicelen
550 def randslice_from_slicelen(slicelen, listlen): argument
552 maxstart = listlen - slicelen
554 maxstep = (listlen - start) // slicelen if slicelen else 1
556 stop = start + slicelen * step
559 if control != slicelen:
570 slicelen = randrange(1, l+1) if l > 0 else 0
571 lslices[n] = randslice_from_slicelen(slicelen, l)
572 rslices[n] = randslice_from_slicelen(slicelen, l)
602 _, _, _, slicelen = slice_indices(s_small, small)
604 slicelen = randrange(1, small+1) if small > 0 else 0
605 s_small = randslice_from_slicelen(slicelen, small)
608 s_big = randslice_from_slicelen(slicelen, big)
707 slicelen = randrange(minlen, n+1)
708 return randslice_from_slicelen(slicelen, n)