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

orsenthil webhook-mailer at python.org
Fri May 14 10:26:45 EDT 2021


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

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

(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 3aba2700048bc0..bb1209dfc33beb 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