[Python-checkins] Update doc as relative import can be used with star import (GH-25667) (GH-26122)

orsenthil webhook-mailer at python.org
Fri May 14 10:25:59 EDT 2021


https://github.com/python/cpython/commit/f3007ea9ad625e36f4b611eb4fb5b294416d89e1
commit: f3007ea9ad625e36f4b611eb4fb5b294416d89e1
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: orsenthil <skumaran at gatech.edu>
date: 2021-05-14T07:25:40-07:00
summary:

Update doc as relative import can be used with star import (GH-25667) (GH-26122)

(cherry picked from commit 3d4b5f1019123a7d74801500eb18ec8fa12136bc)

Co-authored-by: Saiyang Gou <gousaiyang at 163.com>

Co-authored-by: Saiyang Gou <gousaiyang at 163.com>

files:
M Doc/reference/simple_stmts.rst

diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst
index 8691cbd0a47860..fcca12dcf5c4ba 100644
--- a/Doc/reference/simple_stmts.rst
+++ b/Doc/reference/simple_stmts.rst
@@ -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` | "."+
 



More information about the Python-checkins mailing list