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 mrabarnett
Recipients RobM, effbot, ezio.melotti, mrabarnett, pitrou
Date 2011-04-28.19:54:48
SpamBayes Score 0.12828934
Marked as misclassified No
Message-id <1304020489.31.0.398676069702.issue11947@psf.upfronthosting.co.za>
In-reply-to
Content
help(re.sub) says:

    sub(pattern, repl, string, count=0)

and re.IGNORECASE has a value of 2.

Therefore this:

    re.sub("_", "X", subject, re.IGNORECASE)

is telling it to replace at most 2 occurrences of "_".
History
Date User Action Args
2011-04-28 19:54:49mrabarnettsetrecipients: + mrabarnett, effbot, pitrou, ezio.melotti, RobM
2011-04-28 19:54:49mrabarnettsetmessageid: <1304020489.31.0.398676069702.issue11947@psf.upfronthosting.co.za>
2011-04-28 19:54:48mrabarnettlinkissue11947 messages
2011-04-28 19:54:48mrabarnettcreate