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
Finish deprecating load_module() #69988
Comments
There are a couple concrete implementations of load_module() in importlib that have not been explicitly deprecated that probably should be. As part of this I will finally add an Examples section to the importlib docs to show how to do common tasks such as load a source file. |
New changeset ab0e60a36368 by Brett Cannon in branch 'default': |
I'm leaving this issue open until I add an Examples section to the importlib docs. I will use the imp module as a guide of what to document. |
Here is my attempt at adding an Examples section to the importlib docs. I cover importlib.util.find_spec(), importlib.import_module(), how to import a module by file path, and give an approximate import implementation for illustrative purposes. |
bpo-25802.diff looks good to me (just added a minor comment on Rietveld) |
New changeset d733b6275e17 by Brett Cannon in branch 'default': |
Thanks for the review, Berker! I managed to figure out how to get the Examples links to work so that made it into the final version. |
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: