We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ispackage
inspect
Currently, the built-in module inspect lacks a function to determine whether an object is a package or not. This is a small but useful feature.
According to the documentation, this feature should not be difficult to implement, and we should add it to the standard library:
I've tried to implement this feature and will make a PR later.
This is a minor feature, which does not need previous discussion elsewhere
No response
The text was updated successfully, but these errors were encountered:
My idea for implementing this feature is:
flowchart LR 1(obj) 2{is module?} 3{hasattr __ path __?} 4(pkg) 1 --> 2 --Y--> 3 --Y--> 4
Sorry, something went wrong.
No branches or pull requests
Feature or enhancement
Proposal:
Currently, the built-in module
inspect
lacks a function to determine whether an object is a package or not. This is a small but useful feature.According to the documentation, this feature should not be difficult to implement, and we should add it to the standard library:
I've tried to implement this feature and will make a PR later.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
ispackage
to stdlibinspect
#125634The text was updated successfully, but these errors were encountered: