mirror of
https://github.com/python/cpython.git
synced 2026-04-22 03:41:08 +00:00
[Docs] Fix required version of an example of importlib (GH-10118)
§31.5.6.3. Importing a source file directly: `module_from_spec` is new in Python 3.5.
(cherry picked from commit 16c8a53490)
Co-authored-by: E Kawashima <e-kwsm@users.noreply.github.com>
This commit is contained in:
parent
6ad277b259
commit
91a19c923c
1 changed files with 1 additions and 1 deletions
|
|
@ -1653,7 +1653,7 @@ Importing a source file directly
|
|||
''''''''''''''''''''''''''''''''
|
||||
|
||||
To import a Python source file directly, use the following recipe
|
||||
(Python 3.4 and newer only)::
|
||||
(Python 3.5 and newer only)::
|
||||
|
||||
import importlib.util
|
||||
import sys
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue