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 serhiy.storchaka
Recipients dabrahams, ezio.melotti, mrabarnett, serhiy.storchaka
Date 2012年08月02日.17:05:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343927107.0.0.971557080207.issue15537@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012年08月02日 17:05:07serhiy.storchakasetrecipients: + serhiy.storchaka, ezio.melotti, mrabarnett, dabrahams
2012年08月02日 17:05:07serhiy.storchakasetmessageid: <1343927107.0.0.971557080207.issue15537@psf.upfronthosting.co.za>
2012年08月02日 17:05:06serhiy.storchakalinkissue15537 messages
2012年08月02日 17:05:05serhiy.storchakacreate

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