[issue28767] Readd __index__ support on ipaddress objects

2017-03-21 Thread Josh Rosenberg
Josh Rosenberg added the comment: >From the original bugs, it looks like people liked being able to directly >produce the hex of the IP addresses using hex(). I'll admit I'm only +0.5 on >restoring __index__; having them be equivalent to int, not just convertable, >doesn't seem critical. I jus

[issue28767] Readd __index__ support on ipaddress objects

2016-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why __index__ support is needed? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs

[issue28767] Readd __index__ support on ipaddress objects

2016-11-21 Thread Josh Rosenberg
New submission from Josh Rosenberg: It looks like, due to #16722, in #15559, __index__ was removed from ipaddress objects. #16722 was fixed a few months later, but the comments asking for it to be readded were put on a closed issue, so no one noticed. Can __index__ support be readded now? Shou