Lines Matching defs:match
975 def match(req, flag):
979 (ex.readonly and match(req, PyBUF_WRITABLE)) or
980 # cannot match explicit contiguity request
981 (match(req, PyBUF_C_CONTIGUOUS) and not ex.c_contiguous) or
982 (match(req, PyBUF_F_CONTIGUOUS) and not ex.f_contiguous) or
983 (match(req, PyBUF_ANY_CONTIGUOUS) and not ex.contiguous) or
985 (not match(req, PyBUF_INDIRECT) and ex.suboffsets) or
987 (not match(req, PyBUF_STRIDES) and not ex.c_contiguous) or
989 (not match(req, PyBUF_ND) and match(req, PyBUF_FORMAT))):
1001 ro = False if match(req, PyBUF_WRITABLE) else ex.readonly
1005 if not match(req, PyBUF_FORMAT):
1011 if not match(req, PyBUF_ND):
1013 shape = orig_ex.shape if match(req, PyBUF_ND) else ()
1014 strides = orig_ex.strides if match(req, PyBUF_STRIDES) else ()