[Python-checkins] Update doc as relative import can be used with star import (GH-25667)
willingc
webhook-mailer at python.org
Fri May 14 01:37:28 EDT 2021
https://github.com/python/cpython/commit/3d4b5f1019123a7d74801500eb18ec8fa12136bc
commit: 3d4b5f1019123a7d74801500eb18ec8fa12136bc
branch: main
author: Saiyang Gou <gousaiyang at 163.com>
committer: willingc <carolcode at willingconsulting.com>
date: 2021-05-13T22:37:19-07:00
summary:
Update doc as relative import can be used with star import (GH-25667)
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