Skip to content

[3.7] bpo-40824: Do not mask errors in __iter__ in "in" and the operator module. (GH-20537) #21045

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

Closed

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 22, 2020

Unexpected errors in calling the iter method are no longer
masked by TypeError in the "in" operator and functions
operator.contains(), operator.indexOf() and operator.countOf().
(cherry picked from commit cafe1b6)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

https://bugs.python.org/issue40824

…dule. (pythonGH-20537)

Unexpected errors in calling the __iter__ method are no longer
masked by TypeError in the "in" operator and functions
operator.contains(), operator.indexOf() and operator.countOf().
(cherry picked from commit cafe1b6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@miss-islington
Copy link
Contributor Author

@serhiy-storchaka: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington
Copy link
Contributor Author

@serhiy-storchaka: Status check is done, and it's a success ✅ .

@miss-islington
Copy link
Contributor Author

Sorry, I can't merge this PR. Reason: You're not authorized to push to this branch. Visit https://help.github.com/articles/about-protected-branches/ for more information..

@ned-deily
Copy link
Member

As announced, with the tagging of 3.7.8rc1, the 3.7 branch is now in security-fix mode. Should we be making this last-minute change in 3.7 behavior? It doesn't really feel like a big security issue; has anyone reported this problem in the field? I'm reluctant to throw this change in at the last minute but if you can get another core developer to review and approve it, I'll consider it.

@miss-islington miss-islington deleted the backport-cafe1b6-3.7 branch June 24, 2020 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting merge type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants