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 Alcolo Alcolo, ezio.melotti, martin.panter, mrabarnett, r.david.murray, serhiy.storchaka
Date 2017-12-02.22:01:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1512252075.37.0.213398074469.issue25054@psf.upfronthosting.co.za>
In-reply-to
Content
Avoiding ZWM after a NWM in re.sub() is explicitly documented (and the documentation is correct in this case). This follows the behavior in the ancient RE implementation. Once it was broken in sre, but then fixed (see 21009b9c6fc40b25fcb30ee60d6108f235733e40, issue462270). Changing this behavior doesn't break anything in the stdlib except the specially purposed test. I think it is better to keep this behavior, but maybe discuss its changing (for making matching the behavior of other RE engines) in the separate issue.

I don't know how the behavior of findall() and finditer() is related to this.
History
Date User Action Args
2017-12-02 22:01:15serhiy.storchakasetrecipients: + serhiy.storchaka, ezio.melotti, mrabarnett, r.david.murray, martin.panter, Alcolo Alcolo
2017-12-02 22:01:15serhiy.storchakasetmessageid: <1512252075.37.0.213398074469.issue25054@psf.upfronthosting.co.za>
2017-12-02 22:01:15serhiy.storchakalinkissue25054 messages
2017-12-02 22:01:15serhiy.storchakacreate