Skip to content

Commit

Permalink
Avoid unnecessary recursive function calls (closes python#10519)
Browse files Browse the repository at this point in the history
  • Loading branch information
akheron committed Oct 30, 2011
1 parent f54f6f5 commit 5acc27e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Objects/setobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1877,7 +1877,7 @@ set_contains(PySetObject *so, PyObject *key)
tmpkey = make_new_set(&PyFrozenSet_Type, key);
if (tmpkey == NULL)
return -1;
rv = set_contains(so, tmpkey);
rv = set_contains_key(so, tmpkey);
Py_DECREF(tmpkey);
}
return rv;
Expand Down Expand Up @@ -1942,7 +1942,7 @@ set_discard(PySetObject *so, PyObject *key)
tmpkey = make_new_set(&PyFrozenSet_Type, key);
if (tmpkey == NULL)
return NULL;
result = set_discard(so, tmpkey);
result = set_discard_key(so, tmpkey);
Py_DECREF(tmpkey);
return result;
}
Expand Down

0 comments on commit 5acc27e

Please sign in to comment.