Serhiy Storchaka <[email protected]> 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 <[email protected]> <https://bugs.python.org/issue31969> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
