Skip to content

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 <rhettinger@users.noreply.github.com>
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 <rhettinger@users.noreply.github.com>
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