Restore attribute access so that the following work again:

dir(xrange(10))
   xrange(10).__getitem__(4)
This commit is contained in:
Raymond Hettinger 2002-11-07 16:55:54 +00:00
parent 492620ae5e
commit 5ae8e01cc5
1 changed files with 1 additions and 1 deletions

View File

@ -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 */