[issue36846] range_iterator does not use __index__

2019-05-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue17576. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie) ___

[issue36846] range_iterator does not use __index__

2019-05-08 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi @bup, thanks for opening a new bug report. I'm not sure I get what is the issue though. Could you attach a more readable example and explain exactly when you expect __index__ to be called? -- nosy: +remi.lapeyre _

[issue36846] range_iterator does not use __index__

2019-05-07 Thread Dan Snider
New submission from Dan Snider : I wouldn't even know where to begin to try and find a palatable solution for this that wouldn't be summarily dismissed. Perhaps it isn't unreasonable to suggest PyNumber_Index shouldn't use the less stringent PyLong_Check as the entry to the fast path. That i