]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update doc as relative import can be used with star import (GH-25667) (GH-26122)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 14 May 2021 14:25:40 +0000 (07:25 -0700)
committerGitHub <noreply@github.com>
Fri, 14 May 2021 14:25:40 +0000 (07:25 -0700)
(cherry picked from commit 3d4b5f1019123a7d74801500eb18ec8fa12136bc)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
Co-authored-by: Saiyang Gou <gousaiyang@163.com>
Doc/reference/simple_stmts.rst

index 8691cbd0a47860d911e07f2b3927ce47933b7c73..fcca12dcf5c4ba98fbbeca5f955d7d260e6d4348 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` | "."+