-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Fix hasattr's exception problems #46449
Comments
hasattr currently returns False when any exception happens in getattr. I |
Here's a documentation change that explains hasattr's exception issues |
Please reformat your patch using tabs. |
After looking more closely, I saw that this is documented at |
On Fri, Feb 29, 2008 at 2:04 PM, Benjamin Peterson
Yes, although that is changing in Python 3.0. |
I suppose another way we could do this is propagate any exception which |
I think it would be better not to hardcode specific 2 exceptional cases |
Here's a patch for that. Personally, I'm +1 on either option; I just |
That last patch is malformed. |
Further comments? |
On Tue, Mar 18, 2008 at 4:48 PM, Benjamin Peterson
I have not looked at the patch yet (and I don't know when I will get to it). |
Done in r63119. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: