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
Add reference to the object missing an attribute to AttributeError #66905
Comments
Trying to replicate a Ruby Gem that raises a “did you mean” error when mistyping a method name, I hit a showstopper: There seems to be no way to get the object which misses an attribute from an AttributeError. I propose the appended patch (it might be completely broken because I’m not experienced in the Python C API, but I tried) |
This is a duplicate of bpo-18156. |
No, this is about the object which misses an argument, not the attribute name. But thanks for the pointer: one combined fix for both would be the smartest thing to do. |
See also PEP-473. |
I think we should be pursued together with bpo-18156, so I'm going to close this. Serhiy already added a reference to this issue there. |
sure, go ahead! i wasn’t aware of PEP nor issue, so sorry for filing a dupe. |
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: