]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update doc as relative import can be used with star import (GH-25667)
authorSaiyang Gou <gousaiyang@163.com>
Fri, 14 May 2021 05:37:19 +0000 (22:37 -0700)
committerGitHub <noreply@github.com>
Fri, 14 May 2021 05:37:19 +0000 (22:37 -0700)
Doc/reference/simple_stmts.rst

index 3aba2700048bc04bebb85df8e995d7b5551438b8..bb1209dfc33bebe9e5b34cadd4e90bcef57610c9 100644 (file)
@@ -734,7 +734,7 @@ The :keyword:`!import` statement
               : ("," `identifier` ["as" `identifier`])*
               : | "from" `relative_module` "import" "(" `identifier` ["as" `identifier`]
               : ("," `identifier` ["as" `identifier`])* [","] ")"
-              : | "from" `module` "import" "*"
+              : | "from" `relative_module` "import" "*"
    module: (`identifier` ".")* `identifier`
    relative_module: "."* `module` | "."+