Commit c92449f3 authored by Raymond Hettinger's avatar Raymond Hettinger

Restore attribute access so that the following work again:

   dir(xrange(10))
   xrange(10).__getitem__(4)
parent 5d78d9b1
...@@ -190,7 +190,7 @@ PyTypeObject PyRange_Type = { ...@@ -190,7 +190,7 @@ PyTypeObject PyRange_Type = {
0, /* tp_hash */ 0, /* tp_hash */
0, /* tp_call */ 0, /* tp_call */
0, /* tp_str */ 0, /* tp_str */
0, /* tp_getattro */ PyObject_GenericGetAttr, /* tp_getattro */
0, /* tp_setattro */ 0, /* tp_setattro */
0, /* tp_as_buffer */ 0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT, /* tp_flags */ Py_TPFLAGS_DEFAULT, /* tp_flags */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment