diff options
-rw-r--r-- | Objects/abstract.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index 307ef86..f586d6d 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -1607,7 +1607,8 @@ PyMapping_Check(PyObject *o) return o && o->ob_type->tp_as_mapping && o->ob_type->tp_as_mapping->mp_subscript && - !PyObject_HasAttrString(o, "__getslice__"); + !(o->ob_type->tp_as_sequence && + o->ob_type->tp_as_sequence->sq_slice); } int |