summaryrefslogtreecommitdiffstats
path: root/Objects/setobject.c
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2008-07-15 15:46:38 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2008-07-15 15:46:38 (GMT)
commitd1abd25ed8e14a64da21d17ece73c49390b9b083 (patch)
tree21c0fbf58c0b0a05268ccdf538716f2f75dd5576 /Objects/setobject.c
parente65282114e96efb9e7eee77c57244943b746f6fe (diff)
downloadcpython-d1abd25ed8e14a64da21d17ece73c49390b9b083.zip
cpython-d1abd25ed8e14a64da21d17ece73c49390b9b083.tar.gz
cpython-d1abd25ed8e14a64da21d17ece73c49390b9b083.tar.bz2
Manual forward port of 64962 - use PyObject_HashNotImplemented as a tp_hash level indicator that the default hash implementation has not been inherited
Diffstat (limited to 'Objects/setobject.c')
-rw-r--r--Objects/setobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index 79598f2..771f47e 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -2092,7 +2092,7 @@ PyTypeObject PySet_Type = {
&set_as_number, /* tp_as_number */
&set_as_sequence, /* tp_as_sequence */
0, /* tp_as_mapping */
- 0, /* tp_hash */
+ (hashfunc)PyObject_HashNotImplemented, /* tp_hash */
0, /* tp_call */
0, /* tp_str */
PyObject_GenericGetAttr, /* tp_getattro */