def is_memoryview_format(fmt):
 x = len(fmt)
 return (((x == 1) or ((x == 2) and (fmt[0] == '@'))) and (fmt[(x - 1)] in MEMORYVIEW))

def is_memoryview_format ( fmt ) : x = len ( fmt ) return ( ( ( x == 1 ) or ( ( x == 2 ) and ( fmt [ 0 ] == '@' ) ) ) and ( fmt [ ( x - 1 ) ] in MEMORYVIEW ) )
format suitable for memoryview .