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 mrabarnett
Recipients filip, gvanrossum, mkc, mrabarnett
Date 2008-07-08.16:39:15
SpamBayes Score 0.095286526
Marked as misclassified No
Message-id <1215535159.15.0.376964055081.issue3262@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2008-07-08 16:39:19mrabarnettsetspambayes_score: 0.0952865 -> 0.095286526
recipients: + mrabarnett, gvanrossum, mkc, filip
2008-07-08 16:39:19mrabarnettsetspambayes_score: 0.0952865 -> 0.0952865
messageid: <1215535159.15.0.376964055081.issue3262@psf.upfronthosting.co.za>
2008-07-08 16:39:18mrabarnettlinkissue3262 messages
2008-07-08 16:39:17mrabarnettcreate