Skip to content

gh-107208: Fix iter_index() recipe to not swallow exceptions #108835

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 1 commit into from
Sep 3, 2023

Conversation

rhettinger
Copy link
Contributor

@rhettinger rhettinger commented Sep 3, 2023

Also fixed the missing stop argument needed to match the functionality of Sequence.index.


📚 Documentation preview 📚: https://cpython-previews--108835.org.readthedocs.build/

@rhettinger rhettinger added type-bug An unexpected behavior, bug, or error docs Documentation in the Doc dir needs backport to 3.12 only security fixes labels Sep 3, 2023
@rhettinger rhettinger self-assigned this Sep 3, 2023
@rhettinger rhettinger merged commit f373c6b into python:main Sep 3, 2023
@miss-islington
Copy link
Contributor

Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-108837 is a backport of this pull request to the 3.12 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.12 only security fixes label Sep 3, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 3, 2023
…ythongh-108835)

(cherry picked from commit f373c6b)

Co-authored-by: Raymond Hettinger <[email protected]>
pythongh-107208: iter_index now supports "stop" and no longer swallows ValueError
@rhettinger rhettinger deleted the iterindex_valueerror branch September 3, 2023 03:26
Yhg1s pushed a commit that referenced this pull request Sep 4, 2023
…h-108835) (#108837)

gh-107208: Fix iter_index() recipe to not swallow exceptions (gh-108835)
(cherry picked from commit f373c6b)


gh-107208: iter_index now supports "stop" and no longer swallows ValueError

Co-authored-by: Raymond Hettinger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants