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 serhiy.storchaka
Recipients Anders.Hovmöller, Mark Borgerding, ezio.melotti, mrabarnett, mu_mind, serhiy.storchaka
Date 2020-04-16.14:46:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587048378.52.0.590265612571.issue32308@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-04-16 14:46:18serhiy.storchakasetrecipients: + serhiy.storchaka, ezio.melotti, mrabarnett, mu_mind, Anders.Hovmöller, Mark Borgerding
2020-04-16 14:46:18serhiy.storchakasetmessageid: <1587048378.52.0.590265612571.issue32308@roundup.psfhosted.org>
2020-04-16 14:46:18serhiy.storchakalinkissue32308 messages
2020-04-16 14:46:18serhiy.storchakacreate