Matthew Barnett added the comment: It's not a bug.
The documentation says """Split string by the occurrences of pattern. If capturing parentheses are used in pattern, then the text of all groups in the pattern are also returned as part of the resulting list.""" You're splitting on r'^>(.*)$', but not capturing the '>', therefore it's excluded. If you want the '>' included, then put it inside the capture group too. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17668> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com