-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
importlib doc: Fix required Python version of an example #10118
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
Conversation
§31.5.6.3. Importing a source file directly `module_from_spec` is new in 3.5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this is self-explanatory, but it reads asif this function did not exist in Python-3.4. If it did not exist, clearly a documentation bug that needs correcting.
However, IHMO, if this is a change only because Python3-3.5 is "newer" this should not be modified without a issue number explaining why "pretending" older versions did not support this is wise.
Actually |
GH-10345 is a backport of this pull request to the 3.7 branch. |
§31.5.6.3. Importing a source file directly: `module_from_spec` is new in Python 3.5. (cherry picked from commit 16c8a53) Co-authored-by: E Kawashima <e-kwsm@users.noreply.github.com>
GH-10346 is a backport of this pull request to the 3.6 branch. |
§31.5.6.3. Importing a source file directly: `module_from_spec` is new in Python 3.5. (cherry picked from commit 16c8a53) Co-authored-by: E Kawashima <e-kwsm@users.noreply.github.com>
Reference: https://docs.python.org/dev/library/importlib.html#importlib.util.module_from_spec |
§31.5.6.3. Importing a source file directly: `module_from_spec` is new in Python 3.5. (cherry picked from commit 16c8a53) Co-authored-by: E Kawashima <e-kwsm@users.noreply.github.com>
§31.5.6.3. Importing a source file directly: `module_from_spec` is new in Python 3.5. (cherry picked from commit 16c8a53) Co-authored-by: E Kawashima <e-kwsm@users.noreply.github.com>
No description provided.