This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author apalala
Recipients apalala, ezio.melotti, mrabarnett, rhettinger, serhiy.storchaka, terry.reedy
Date 2020-01-17.13:46:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579268806.15.0.442402632869.issue39165@roundup.psfhosted.org>
In-reply-to
Content
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()`.
History
Date User Action Args
2020-01-17 13:46:46apalalasetrecipients: + apalala, rhettinger, terry.reedy, ezio.melotti, mrabarnett, serhiy.storchaka
2020-01-17 13:46:46apalalasetmessageid: <1579268806.15.0.442402632869.issue39165@roundup.psfhosted.org>
2020-01-17 13:46:46apalalalinkissue39165 messages
2020-01-17 13:46:46apalalacreate