diff Objects/listobject.c @ 48475:f4e7ef4329a9

Manual forward port of 64962 - use PyObject_HashNotImplemented as a tp_hash level indicator that the default hash implementation has not been inherited
author Nick Coghlan <ncoghlan@gmail.com>
date Tue, 15 Jul 2008 15:46:38 +0000
parents ac854cde3135
children 7c56624548fd
line wrap: on
line diff
--- a/Objects/listobject.c	Tue Jul 15 15:32:09 2008 +0000
+++ b/Objects/listobject.c	Tue Jul 15 15:46:38 2008 +0000
@@ -2568,7 +2568,7 @@
 	0,					/* tp_as_number */
 	&list_as_sequence,			/* tp_as_sequence */
 	&list_as_mapping,			/* tp_as_mapping */
-	0,					/* tp_hash */
+	(hashfunc)PyObject_HashNotImplemented,	/* tp_hash */
 	0,					/* tp_call */
 	0,					/* tp_str */
 	PyObject_GenericGetAttr,		/* tp_getattro */