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
inspect.getfile error names module instead of passed class #81354
Comments
Currently, inspect.getfile(str) will report nonsense: >>> inspect.getfile(str)
TypeError: <module 'builtins' (built-in)> is a built-in class |
The correct message would be We do not backport exception message changes unless 'buggy enough'. I asked on core-mentorship whether this fix qualifies. |
I think landing the fix to 3.8 only is just fine |
Right, 3.8 not being released yet makes it different. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: