Message366602
The former implementation was wrong. See issue25054 which contains more obvious examples of that bug:
>>> re.sub(r"\b|:+", "-", "a::bc")
'-a-:-bc-'
Not all colons were replaced despite the fact that the pattern matches all colons. |
|
Date |
User |
Action |
Args |
2020-04-16 14:46:18 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ezio.melotti, mrabarnett, mu_mind, Anders.Hovmöller, Mark Borgerding |
2020-04-16 14:46:18 | serhiy.storchaka | set | messageid: <1587048378.52.0.590265612571.issue32308@roundup.psfhosted.org> |
2020-04-16 14:46:18 | serhiy.storchaka | link | issue32308 messages |
2020-04-16 14:46:18 | serhiy.storchaka | create | |
|