diff options
author | Raymond Hettinger <python@rcn.com> | 2002-11-07 16:55:54 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-11-07 16:55:54 (GMT) |
commit | 5ae8e01cc5f7e7e85530abc59b4362c5541872a7 (patch) | |
tree | b80c426a5f16c12b8d1b75b224f667c8d8e2f236 /Objects | |
parent | 492620ae5e38f093dab17251897606be75951f2c (diff) | |
download | cpython-5ae8e01cc5f7e7e85530abc59b4362c5541872a7.zip cpython-5ae8e01cc5f7e7e85530abc59b4362c5541872a7.tar.gz cpython-5ae8e01cc5f7e7e85530abc59b4362c5541872a7.tar.bz2 |
Restore attribute access so that the following work again:
dir(xrange(10))
xrange(10).__getitem__(4)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/rangeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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 */ |