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 bsdphk
Recipients bsdphk, ezio.melotti, mrabarnett, ned.deily
Date 2013-01-05.12:58:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357390725.0.0.359925639478.issue16870@psf.upfronthosting.co.za>
In-reply-to
Content
I have tried hard, but have utterly failed to figure out why you have chosen the semantics for ^ you mention, tried to come up with a plausible use case, and I have utterly failed.

I find it distinctly counter intuitive.

I think the Principle of Least Astonishment compliant definition of ^ and $ would be that they match the start and end of the string offered for matching, ie: taking start+end into account.

The real use-case behind this is searching through a mmap'ed database file, for a particular regexp in a particular field of the records, with the minimum amount of copying.

The semantics you mention, makes ^ and $ useless in this, and as far as I can tell, any other scenario involving start+end arguments.
History
Date User Action Args
2013-01-05 12:58:45bsdphksetrecipients: + bsdphk, ned.deily, ezio.melotti, mrabarnett
2013-01-05 12:58:44bsdphksetmessageid: <1357390725.0.0.359925639478.issue16870@psf.upfronthosting.co.za>
2013-01-05 12:58:44bsdphklinkissue16870 messages
2013-01-05 12:58:44bsdphkcreate