[issue29965] MatchObject __getitem__() should support slicing and len

Michael Selik report at bugs.python.org
Sun Apr 2 23:47:02 EDT 2017


Michael Selik added the comment:

This would also enable negative indexing, which currently raises "IndexError: no such group".

Edit: I meant whole numbers, not natural numbers.

----------
versions: +Python 3.7

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


More information about the Python-bugs-list mailing list