Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43714>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to