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 aldwinaldwin
Recipients aldwinaldwin, holdenweb, v+python
Date 2019-07-03.07:58:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562140730.7.0.0373404669973.issue37490@roundup.psfhosted.org>
In-reply-to
Content
Modified from re module Pattern.search:
--------
The optional second parameter 'start' gives an index in the string where the search is to start; it defaults to 0.

The optional parameter 'end' limits how far the string will be searched; it will be as if the string is 'end' characters long, so only the characters from 'start' to 'end' - 1 will be searched for a match. If 'end' is less than 'start', no match will be found; otherwise, text.startswith(prefix, start, end) gives the same result as text[start:end](prefix).
------------

I don't think this is true like with re:
----
This is not completely equivalent to slicing the string; the '^' pattern character matches at the real beginning of the string and at positions just after a newline, but not necessarily at the index where the search is to start.
----
History
Date User Action Args
2019-07-03 07:58:50aldwinaldwinsetrecipients: + aldwinaldwin, holdenweb, v+python
2019-07-03 07:58:50aldwinaldwinsetmessageid: <1562140730.7.0.0373404669973.issue37490@roundup.psfhosted.org>
2019-07-03 07:58:50aldwinaldwinlinkissue37490 messages
2019-07-03 07:58:50aldwinaldwincreate