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.
1 parent d12102c commit 5f8b1f2Copy full SHA for 5f8b1f2
1 file changed
Objects/setobject.c
@@ -3038,7 +3038,6 @@ PySet_Add(PyObject *anyset, PyObject *key)
3038
// API limits the usage of `PySet_Add` to "fill in the values of brand
3039
// new frozensets before they are exposed to other code". In this case,
3040
// this can be done without a lock.
3041
-
3042
// since another key is added to the set, we must track the frozenset if needed
3043
if (PyFrozenSet_CheckExact(anyset) && PyObject_GC_IsTracked(key) && !PyObject_GC_IsTracked(anyset) ) {
3044
_PyObject_GC_TRACK(anyset);
0 commit comments