diff options
| author | Raymond Hettinger <python@rcn.com> | 2002-11-07 16:55:54 +0000 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2002-11-07 16:55:54 +0000 |
| commit | c92449f3c03ac4e399509843c67211b96dbded0d (patch) | |
| tree | cf914ac36627f69860d6fea6fb5aae84ec4031b2 /Objects/rangeobject.c | |
| parent | 5d78d9b13eb0b10135f4c6f5bca04fbae1389127 (diff) | |
| download | cpython-c92449f3c03ac4e399509843c67211b96dbded0d.tar.gz | |
Restore attribute access so that the following work again:
dir(xrange(10))
xrange(10).__getitem__(4)
Diffstat (limited to 'Objects/rangeobject.c')
| -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 6c9daad559..9d0d9cd4f2 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 */ |
