mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Update doc as relative import can be used with star import (GH-25667) (GH-26121)
(cherry picked from commit 3d4b5f1019
)
Co-authored-by: Saiyang Gou <gousaiyang@163.com>
Co-authored-by: Saiyang Gou <gousaiyang@163.com>
This commit is contained in:
parent
5abc681019
commit
8940916a02
1 changed files with 1 additions and 1 deletions
|
@ -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` | "."+
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue