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

Function iter_mode

Lib/test/test_buffer.py:236–240  ·  view source on GitHub ↗

Iterate through supported mode/char combinations.

(n, obj='ndarray')

Source from the content-addressed store, hash-verified

234 return fmt, items, item
235
236def iter_mode(n, obj='ndarray'):
237 """Iterate through supported mode/char combinations."""
238 for mode in cap[obj][MODE]:
239 for char in fmtdict[mode]:
240 yield randitems(n, obj, mode, char)
241
242def iter_format(nitems, testobj='ndarray'):
243 """Yield (format, items, item) for all possible modes and format

Callers 1

iter_formatFunction · 0.85

Calls 1

randitemsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…