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

Function farray

Lib/test/test_buffer.py:331–334  ·  view source on GitHub ↗
(items, shape)

Source from the content-addressed store, hash-verified

329 return _ca(items, shape)
330
331def farray(items, shape):
332 if listp(items) and not 0 in shape and prod(shape) != len(items):
333 raise ValueError("prod(shape) != len(items)")
334 return _fa(items, shape)
335
336def indices(shape):
337 """Generate all possible tuples of indices."""

Calls 3

listpFunction · 0.85
_faFunction · 0.85
prodFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…