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
docs are missing info about module attributes #64019
Comments
The docs for the inspect module and the types module do not list all the import-related module attributes. I'm guessing they've been out of sync a while. The docstring for for inspect.ismodule() is likewise missing information. |
Are they still missing? inspect.ismodule() seems to be there at least. |
As far as I can tell there is at least some information missing from the 'Types and members' section. Not all attributes are listed in the table. For example the attribute __cached__ is missing from the module type but it is documented in the inspect module. I can update the docs but I would rely on the comments in Lib/inspect.py on what to include. Executing inspect.getmembers on a module returns a lot more attributes than documented in ismodule. |
The relevant module attributes are described in the importlib docs: https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.load_module |
I can help too. |
@emmanuel: thanks for offering your help. I made a first attempt at improving the docs in this branch: https://github.com/MichaelAnckaert/cpython/tree/bpo-19820 |
…butes instead of listing them (GH-98116) Co-authored-by: Michael Anckaert <michael.anckaert@sinax.be>
… attributes instead of listing them (pythonGH-98116) (cherry picked from commit 7d2dcc5) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> Co-authored-by: Michael Anckaert <michael.anckaert@sinax.be>
This is fixed in |
… attributes instead of listing them (pythonGH-98116) (cherry picked from commit 7d2dcc5) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> Co-authored-by: Michael Anckaert <michael.anckaert@sinax.be>
ericsnowcurrently commentedNov 28, 2013
•
edited by bedevere-bot
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:
Linked PRs
inspect
docs link to module attributes instead of listing them (GH-98116) #99782inspect
docs link to module attributes instead of listing them (GH-98116) #99783The text was updated successfully, but these errors were encountered: