Message167240
re.split = split(pattern, string, maxsplit=0, flags=0)
Split the source string by the occurrences of the pattern,
returning a list containing the resulting substrings. 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. If maxsplit is nonzero, at most maxsplit splits occur,
and the remainder of the string is returned as the final element
of the list.
maxsplit=0 in your fist example and maxsplit=8 (re.MULTILINE is 8) in your second example. This is not a bug, this is a wrong understanding. |
|
Date |
User |
Action |
Args |
2012-08-02 17:05:07 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ezio.melotti, mrabarnett, dabrahams |
2012-08-02 17:05:07 | serhiy.storchaka | set | messageid: <1343927107.0.0.971557080207.issue15537@psf.upfronthosting.co.za> |
2012-08-02 17:05:06 | serhiy.storchaka | link | issue15537 messages |
2012-08-02 17:05:05 | serhiy.storchaka | create | |
|