Juancarlo Añez <apal...@gmail.com> added the comment: The bottom problem, as I see it, is that, historically, `re.search()` returns `None` when there is no match, instead of returning a `Match` object that is consistent with "no match" (evaluates to `False`, etc.)
The above seems too difficult to repair as so much existing code relies on those semantics (`if match is None` is the risky bit). Hence, `findall()`, `findalliter()`, and `findfirst()`. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39165> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com