commit | 5ae8e01cc5f7e7e85530abc59b4362c5541872a7 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Thu Nov 07 16:55:54 2002 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Thu Nov 07 16:55:54 2002 +0000 |
tree | b80c426a5f16c12b8d1b75b224f667c8d8e2f236 | |
parent | 492620ae5e38f093dab17251897606be75951f2c [diff] |
Restore attribute access so that the following work again: dir(xrange(10)) xrange(10).__getitem__(4)
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c index 6c9daad..9d0d9cd 100644 --- a/Objects/rangeobject.c +++ b/Objects/rangeobject.c
@@ -190,7 +190,7 @@ 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 */