Message360187
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()`. |
|
Date |
User |
Action |
Args |
2020-01-17 13:46:46 | apalala | set | recipients:
+ apalala, rhettinger, terry.reedy, ezio.melotti, mrabarnett, serhiy.storchaka |
2020-01-17 13:46:46 | apalala | set | messageid: <1579268806.15.0.442402632869.issue39165@roundup.psfhosted.org> |
2020-01-17 13:46:46 | apalala | link | issue39165 messages |
2020-01-17 13:46:46 | apalala | create | |
|