Skip to content

bpo-29935: Fix error messages in the index() method of tuple, list and deque #887

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 30, 2017

Conversation

serhiy-storchaka
Copy link
Member

when pass indices of wrong type.

_PyEval_SliceIndex() now checks for None and not check for NULL.
_PyEval_SliceIndexNotNone() is similar to _PyEval_SliceIndex(), but doesn't allow None.

@mention-bot
Copy link

@serhiy-storchaka, thanks for your PR! By analyzing the history of the files in this pull request, we identified @larryhastings, @benjaminp and @rhettinger to be potential reviewers.

@serhiy-storchaka serhiy-storchaka merged commit d4edfc9 into python:master Mar 30, 2017
@serhiy-storchaka serhiy-storchaka deleted the slice-index-not-none branch March 30, 2017 15:29
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Mar 30, 2017
…and deque (python#887)

when pass indices of wrong type.
(cherry picked from commit d4edfc9)
serhiy-storchaka added a commit that referenced this pull request Mar 30, 2017
…and deque (#887) (#907)

when pass indices of wrong type.
(cherry picked from commit d4edfc9)
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Mar 30, 2017
…and deque (python#887) (python#907)

when pass indices of wrong type.
(cherry picked from commit d4edfc9)
(cherry picked from commit bf4bb2e)
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Mar 30, 2017
…st (python#887) (python#907)

when pass indices of wrong type.
(cherry picked from commit d4edfc9)
(cherry picked from commit bf4bb2e)
serhiy-storchaka added a commit that referenced this pull request Mar 30, 2017
…and deque (#887) (#907) (#909)

when pass indices of wrong type.
(cherry picked from commit d4edfc9)
(cherry picked from commit bf4bb2e)
serhiy-storchaka added a commit that referenced this pull request Mar 30, 2017
…st (#887) (#907) (#910)

when pass indices of wrong type.
(cherry picked from commit d4edfc9)
(cherry picked from commit bf4bb2e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants