Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

No, it should not throw error that there is no any optional match.

It is not easy to check if there is optional match. For example, the pattern 
'(a)|(b)' contains optional matches, while the group in the pattern '()?' 
always matches.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31969>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to