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 alegrigoriev, ezio.melotti, mrabarnett, serhiy.storchaka, terry.reedy
Date 2021-04-10.07:33:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618039987.81.0.716061416086.issue43714@roundup.psfhosted.org>
In-reply-to
Content
I concur with Matthew. I tested several implementations in different programming languages. Perl, PHP and Java behave the same way as Python. Sed, awk and Go behave other way. We can argue that one or other way is "better", but it looks subjective, and in any case such change is breaking. It is better to keep the current behavior until we have very good reasons to break things.

Old versions of Python had different behavior, but the implementation contained a bug which caused skipping some characters (see issue25054). It also prevented support of zero-width patterns in re.split() and the behavior was inconsistent between different re functions. The simplest way of fixing that bug lead to behavior consistent with Perl and Java.
History
Date User Action Args
2021-04-10 07:33:07serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, ezio.melotti, mrabarnett, alegrigoriev
2021-04-10 07:33:07serhiy.storchakasetmessageid: <1618039987.81.0.716061416086.issue43714@roundup.psfhosted.org>
2021-04-10 07:33:07serhiy.storchakalinkissue43714 messages
2021-04-10 07:33:07serhiy.storchakacreate