Skip to content

py/objstr.c: Implement str.rfind() and add tests for it, refactor find_subbytes(). #370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 25, 2014

Conversation

xbe
Copy link
Contributor

@xbe xbe commented Mar 24, 2014

Also got rid of "TODO use a non-exception-throwing mp_get_index" in str_count() and str_find() because they both now use mp_get_index()'s is_slice boolean, so they will no longer be throwing IndexErrors. They can still throw TypeErrors but that's intended.

dpgeorge added a commit that referenced this pull request Mar 25, 2014
py/objstr.c: Implement str.rfind() and add tests for it, refactor find_subbytes().
@dpgeorge dpgeorge merged commit 681d0a9 into micropython:master Mar 25, 2014
@xbe xbe deleted the str-rfind branch March 25, 2014 17:15
tannewt added a commit to tannewt/circuitpython that referenced this pull request Nov 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants