mirror of https://github.com/python/cpython
Restore attribute access so that the following work again:
dir(xrange(10)) xrange(10).__getitem__(4)
This commit is contained in:
parent
492620ae5e
commit
5ae8e01cc5
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue