Lines Matching defs:match
1011 // On success (match), return a tuple of extracted attributes. On failure (no
1012 // match), return NULL. Use _PyErr_Occurred(tstate) to disambiguate.
1018 const char *e = "called match pattern must be a type";
1114 // caller's problem. All we know is that the match failed.
1125 PyObject **match, PyObject **rest);
3898 PyObject *match = NULL, *rest = NULL;
3900 &match, &rest);
3906 if (match == NULL || rest == NULL) {
3907 assert(match == NULL);
3911 if (Py_IsNone(match)) {
3912 PUSH(match);
3916 /* Total or partial match - update the stack from
3919 * [rest, match]
3924 PUSH(match);
3925 PyErr_SetExcInfo(NULL, Py_NewRef(match), NULL);
4259 int match = Py_TYPE(subject)->tp_flags & Py_TPFLAGS_MAPPING;
4260 PyObject *res = match ? Py_True : Py_False;
4270 int match = Py_TYPE(subject)->tp_flags & Py_TPFLAGS_SEQUENCE;
4271 PyObject *res = match ? Py_True : Py_False;
4280 // On successful match, PUSH(values). Otherwise, PUSH(None).
6625 PyObject **match, PyObject **rest)
6628 *match = Py_NewRef(Py_None);
6635 /* Full match of exc itself */
6638 *match = Py_NewRef(exc_value);
6651 *match = wrapped;
6657 /* exc_value does not match match_type.
6658 * Check for partial match if it's an exception group.
6668 *match = Py_NewRef(PyTuple_GET_ITEM(pair, 0));
6673 /* no match */
6674 *match = Py_NewRef(Py_None);