summaryrefslogtreecommitdiffstats
path: root/Objects/setobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-01-26 08:19:06 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-01-26 08:19:06 (GMT)
commit7c1be2a3b191127745a8f58fb3d9115b5ffbde93 (patch)
tree610467dd61d9907dad1d538dc2bcb0a51f9a73d2 /Objects/setobject.c
parent960efe9c2d9611ae0f2cd76ed62ff4db792bd0d2 (diff)
downloadcpython-7c1be2a3b191127745a8f58fb3d9115b5ffbde93.zip
cpython-7c1be2a3b191127745a8f58fb3d9115b5ffbde93.tar.gz
cpython-7c1be2a3b191127745a8f58fb3d9115b5ffbde93.tar.bz2
Make PySet_Add() work with frozensets. Works like PyTuple_SetItem() to build-up values in a brand new frozenset.
Diffstat (limited to 'Objects/setobject.c')
-rw-r--r--Objects/setobject.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index c8db7ce..2556b74 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -2198,10 +2198,6 @@ PySet_Discard(PyObject *set, PyObject *key)
int
PySet_Add(PyObject *set, PyObject *key)
{
- if (!PyType_IsSubtype(Py_TYPE(set), &PySet_Type)) {
- PyErr_BadInternalCall();
- return -1;
- }
return set_add_key((PySetObject *)set, key);
}