diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c index 6c9daad5597..9d0d9cd4f27 100644 --- a/Objects/rangeobject.c +++ b/Objects/rangeobject.c @@ -190,7 +190,7 @@ PyTypeObject PyRange_Type = { 0, /* tp_hash */ 0, /* tp_call */ 0, /* tp_str */ - 0, /* tp_getattro */ + PyObject_GenericGetAttr, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ Py_TPFLAGS_DEFAULT, /* tp_flags */