We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PySet_Contains
frozenset
1 parent 799326b commit 7211a34Copy full SHA for 7211a34
1 file changed
Objects/setobject.c
@@ -2747,7 +2747,9 @@ PySet_Contains(PyObject *anyset, PyObject *key)
2747
PyErr_BadInternalCall();
2748
return -1;
2749
}
2750
-
+ if (PyFrozenSet_CheckExact(anyset)) {
2751
+ return set_contains_key((PySetObject *)anyset, key);
2752
+ }
2753
int rv;
2754
Py_BEGIN_CRITICAL_SECTION(anyset);
2755
rv = set_contains_key((PySetObject *)anyset, key);
0 commit comments