format suitable for memoryview
(fmt)
| 241 | return 'c' in fmt or 'b' in fmt or 'B' in fmt |
| 242 | |
| 243 | def is_memoryview_format(fmt): |
| 244 | """format suitable for memoryview""" |
| 245 | x = len(fmt) |
| 246 | return ((x == 1 or (x == 2 and fmt[0] == '@')) and |
| 247 | fmt[x-1] in MEMORYVIEW) |
| 248 | |
| 249 | NON_BYTE_FORMAT = [c for c in fmtdict['@'] if not is_byte_format(c)] |
| 250 |
no test coverage detected