homepage

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 triquetra011
Recipients ezio.melotti, mrabarnett, r.david.murray, triquetra011
Date 2013年04月08日.19:20:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1365448816.39.0.516111117379.issue17668@psf.upfronthosting.co.za>
In-reply-to
Content
Hi Matthew,
Thanks for such a quick reply. I know I can get the > by putting it in grouping parentheses. That's not the issue here. The documentation you quoted says that it splits the string by the occurrences _OF_PATTERN_ and that texts of all groups are _ALSO_ returned as _PART_ of the resulting list. It does not say anywhere (nor does it even suggest that) that parts of the pattern not grouped with parentheses are REMOVED.
That said, I did not report this issue to split hairs (I would rather split strings with regular expressions ;)) and perform liguistic analysis of the current documentation (which is not set in stone and has been changed before). I did that because I spotted an issue which slightly limits usefulness of re.split() and suggested a potential improvement which would solve the problem and make re.split() even better than it already is. Whether the powers that be do something with this and improve re.split() is of course not my decision.
Cheers,
T
History
Date User Action Args
2013年04月08日 19:20:16triquetra011setrecipients: + triquetra011, ezio.melotti, mrabarnett, r.david.murray
2013年04月08日 19:20:16triquetra011setmessageid: <1365448816.39.0.516111117379.issue17668@psf.upfronthosting.co.za>
2013年04月08日 19:20:16triquetra011linkissue17668 messages
2013年04月08日 19:20:16triquetra011create

AltStyle によって変換されたページ (->オリジナル) /