Yield (format, items, item) for all possible modes and format characters plus one random compound format string.
(nitems, testobj='ndarray')
| 228 | yield randitems(n, obj, mode, char) |
| 229 | |
| 230 | def iter_format(nitems, testobj='ndarray'): |
| 231 | """Yield (format, items, item) for all possible modes and format |
| 232 | characters plus one random compound format string.""" |
| 233 | for t in iter_mode(nitems, testobj): |
| 234 | yield t |
| 235 | if testobj != 'ndarray': |
| 236 | return |
| 237 | yield struct_items(nitems, testobj) |
| 238 | |
| 239 | |
| 240 | def is_byte_format(fmt): |
no test coverage detected