Matthew Barnett <[EMAIL PROTECTED]> added the comment: There appear to be 2 opinions on this issue:
1. It's a bug, a corner case that got missed. 2. It's always been like this, so it's probably a design decision, although no-one can't point to where or when the decision was made... Looking at the code, I think it's a bug. Expected behaviour: if 'pattern' is a non-capturing regex, then re.split(pattern, text) == re.sub(pattern, MARKER, text).split(MARKER). _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3262> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com