[issue9529] Make re match object iterable

Serhiy Storchaka report at bugs.python.org
Fri Aug 1 15:02:53 CEST 2014


Serhiy Storchaka added the comment:

I think that if the regex module will be adopted in the stdlib, not all it's feature should be included. Regex is too complicated. In particular indexing looks confusing (due to ambiguity of starting index and redundant first item in unpacking). If we will not add support for indexing, there will no incompatibility.

There is yet one solution:

0) Reject both iterating and indexing.

----------

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


More information about the Python-bugs-list mailing list