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

Make C's __providedBy__ stop ignoring all errors and catch only AttributeError #240

Merged
merged 2 commits into from Apr 15, 2021

Conversation

jamadden
Copy link
Member

Fixes #239

There was a similar bug in the Python side where it would ignore a __provides__ of None, unlike the C implementation.
I fixed this and documented this fix in the code but not the CHANGES.rst because I can't imagine anyone relying on that.

…buteError.

Fixes #239

There was a similar bug in the Python side where it would ignore a __provides__ of None, unlike the C implementation.
I documented this in the code but not the CHANGES.rst because I can't imagine anyone relying on that.
@jamadden jamadden requested a review from jensens April 14, 2021 10:58
Copy link
Member

@icemac icemac left a comment

Choose a reason for hiding this comment

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

LGTM from reading the code.

@jamadden
Copy link
Member Author

Thank you!

@jamadden jamadden merged commit 24b6a01 into master Apr 15, 2021
@jamadden jamadden deleted the issue239 branch April 15, 2021 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python/C discrepancy: Python can raise RecursionError if __setattr__ and __getattr__ use providedBy()
2 participants