MCPcopy Index your code
hub / github.com/python/cpython / rpermutation

Function rpermutation

Lib/test/test_buffer.py:747–750  ·  view source on GitHub ↗
(iterable, r=None)

Source from the content-addressed store, hash-verified

745 yield tuple(slice(0,1,0) for _ in range(ndim))
746
747def rpermutation(iterable, r=None):
748 pool = tuple(iterable)
749 r = len(pool) if r is None else r
750 yield tuple(sample(pool, r))
751
752def ndarray_print(nd):
753 """Print ndarray for debugging."""

Callers

nothing calls this directly

Calls 1

sampleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…