PEP 448: additional unpacking generalizations (closes #2292)
Patch by Neil Girdhar.
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index cb0d2a7..0548224 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -3412,8 +3412,8 @@
return result;
}
-static PyObject*
-dictviews_and(PyObject* self, PyObject *other)
+PyObject*
+_PyDictView_Intersect(PyObject* self, PyObject *other)
{
PyObject *result = PySet_New(self);
PyObject *tmp;
@@ -3487,7 +3487,7 @@
0, /*nb_invert*/
0, /*nb_lshift*/
0, /*nb_rshift*/
- (binaryfunc)dictviews_and, /*nb_and*/
+ (binaryfunc)_PyDictView_Intersect, /*nb_and*/
(binaryfunc)dictviews_xor, /*nb_xor*/
(binaryfunc)dictviews_or, /*nb_or*/
};