importlib doc: Fix required Python version of an example#10118
Conversation
§31.5.6.3. Importing a source file directly `module_from_spec` is new in 3.5
aixtools
left a comment
There was a problem hiding this comment.
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.