Skip to content
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

bpo-44558: Make the implementation consistency of operator.indexOf #27012

Merged
merged 2 commits into from Jul 5, 2021

Conversation

@corona10
Copy link
Member

@corona10 corona10 commented Jul 4, 2021

https://bugs.python.org/issue44558

@corona10 corona10 force-pushed the bpo-44558-index-of branch from af82eb3 to 776a54a Jul 4, 2021
@corona10 corona10 changed the title bpo-44558: Make consistency of the implementation of operator.indexOf bpo-44558: Make the implementation consistency of operator.indexOf Jul 4, 2021
nan = float("nan")
self.assertEqual(operator.indexOf([nan, nan, 21], nan), 0)
Copy link
Member

@serhiy-storchaka serhiy-storchaka Jul 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to add a test for {} as in #27007.

@corona10 corona10 merged commit 0930240 into python:main Jul 5, 2021
13 checks passed
@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 5, 2021

Thanks @corona10 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.9.
🐍🍒🤖

miss-islington added a commit to miss-islington/cpython that referenced this issue Jul 5, 2021
…ythonGH-27012)

(cherry picked from commit 0930240)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Jul 5, 2021

GH-27029 is a backport of this pull request to the 3.10 branch.

miss-islington added a commit to miss-islington/cpython that referenced this issue Jul 5, 2021
…ythonGH-27012)

(cherry picked from commit 0930240)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Jul 5, 2021

GH-27030 is a backport of this pull request to the 3.9 branch.

miss-islington added a commit that referenced this issue Jul 5, 2021
…H-27012)

(cherry picked from commit 0930240)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
miss-islington added a commit that referenced this issue Jul 5, 2021
…H-27012)

(cherry picked from commit 0930240)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants