MCPcopy Index your code
hub / github.com/RustPython/RustPython / iter_mode

Function iter_mode

Lib/test/test_buffer.py:224–228  ·  view source on GitHub ↗

Iterate through supported mode/char combinations.

(n, obj='ndarray')

Source from the content-addressed store, hash-verified

222 return fmt, items, item
223
224def iter_mode(n, obj='ndarray'):
225 """Iterate through supported mode/char combinations."""
226 for mode in cap[obj][MODE]:
227 for char in fmtdict[mode]:
228 yield randitems(n, obj, mode, char)
229
230def iter_format(nitems, testobj='ndarray'):
231 """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