Skip to content
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

Update import mode documentation to not refer to __import__() anymore. #10747

Merged
merged 2 commits into from
Feb 18, 2023

Conversation

manueljacob
Copy link
Contributor

Nowadays, the prepend and append import modes use importlib.import_module() instead of import().

There was a phrase “which avoids having to use __import__”, in which I couldn’t just replace __import__ by importlib.import_module because the latter is used (in insert_missing_modules()) also when using importlib mode. Therefore I removed the part from the sentence.

Nowadays, the prepend and append import modes use importlib.import_module() instead of __import__().

There was a phrase “which avoids having to use `__import__`”, in which I couldn’t just replace `__import__` by `importlib.import_module` because the latter is used (in insert_missing_modules()) also when using importlib mode. Therefore I removed the part from the sentence.
Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, appreciate it!

doc/en/explanation/pythonpath.rst Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants