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 dabrahams
Recipients dabrahams, ezio.melotti, mrabarnett
Date 2012-08-02.14:58:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343919537.43.0.272512350755.issue15537@psf.upfronthosting.co.za>
In-reply-to
Content
compare the output of

$ python -c "open('/tmp/tst','w').write(100*'x\n');import re;print len(re.split('\n(?=x)', open('/tmp/tst').read()))"
100

with

$ python -c "open('/tmp/tst','w').write(100*'x\n');import re;print len(re.split('\n(?=x)', open('/tmp/tst').read(), re.MULTILINE))"
9
History
Date User Action Args
2012-08-02 14:58:57dabrahamssetrecipients: + dabrahams, ezio.melotti, mrabarnett
2012-08-02 14:58:57dabrahamssetmessageid: <1343919537.43.0.272512350755.issue15537@psf.upfronthosting.co.za>
2012-08-02 14:58:56dabrahamslinkissue15537 messages
2012-08-02 14:58:56dabrahamscreate