Author mrabarnett
Recipients ezio.melotti, mrabarnett, pitrou, serhiy.storchaka
Date 2014-10-08.23:01:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412809302.18.0.837196971777.issue22578@psf.upfronthosting.co.za>
In-reply-to
Content
I prefer to include the line and column numbers if it's a multi-line pattern, not just if the line number is > 1.

BTW, it's shorter if you do this:

    self.colno = pos - pattern.rfind(newline, 0, pos)

If there's no newline, .rfind will return -1.
History
Date User Action Args
2014-10-08 23:01:42mrabarnettsetrecipients: + mrabarnett, pitrou, ezio.melotti, serhiy.storchaka
2014-10-08 23:01:42mrabarnettsetmessageid: <1412809302.18.0.837196971777.issue22578@psf.upfronthosting.co.za>
2014-10-08 23:01:42mrabarnettlinkissue22578 messages
2014-10-08 23:01:42mrabarnettcreate