mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue