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
Date 2013-01-05.09:21:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357377715.09.0.558139465053.issue16870@psf.upfronthosting.co.za>
In-reply-to
Content
I'm surprised that this does not find any matches:

    import re
    r = re.compile("^abc")
    s = "0123abcxyz"
    for i in range(0,len(s)):
        print(i, r.search(s, i))

I would have expected the i==4 case to match ?

(This is on:
Python 2.7.3 (default, Dec 14 2012, 02:46:02) 
[GCC 4.2.1 Compatible FreeBSD Clang 3.2 (branches/release_32 168974)] on freebsd10
)
History
Date User Action Args
2013-01-05 09:21:55bsdphksetrecipients: + bsdphk, ezio.melotti, mrabarnett
2013-01-05 09:21:55bsdphksetmessageid: <1357377715.09.0.558139465053.issue16870@psf.upfronthosting.co.za>
2013-01-05 09:21:55bsdphklinkissue16870 messages
2013-01-05 09:21:54bsdphkcreate