[issue27177] re match.group should support __index__

Jeroen Demeyer report at bugs.python.org
Thu Jun 2 08:35:59 EDT 2016


Jeroen Demeyer added the comment:

I would still argue that it's a bug. The intention of PEP 357 is that __index__ should be used whenever some object needs to be converted to a Py_ssize_t, which is exactly what you do here.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27177>
_______________________________________


More information about the Python-bugs-list mailing list