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 mrabarnett
Date 2008-07-02.22:07:48
SpamBayes Score 0.024253152
Marked as misclassified No
Message-id <1215036469.9.0.581701421463.issue3262@psf.upfronthosting.co.za>
In-reply-to
Content
re.split doesn't split a string when the regex matches a zero characters.

For example:

re.split(r'\b', 'a b') returns ['a b'] instead of ['', 'a', ' ', 'b', ''].

re.split(r'(?<!\w)(?=\w)', 'a b') returns ['a b'] instead of ['', 'a ',
'b'].
History
Date User Action Args
2008-07-02 22:07:50mrabarnettsetspambayes_score: 0.0242532 -> 0.024253152
recipients: + mrabarnett
2008-07-02 22:07:49mrabarnettsetspambayes_score: 0.0242532 -> 0.0242532
messageid: <1215036469.9.0.581701421463.issue3262@psf.upfronthosting.co.za>
2008-07-02 22:07:48mrabarnettlinkissue3262 messages
2008-07-02 22:07:48mrabarnettcreate