Skip to content

Commit

Permalink
docs: Mention import foo {.all.} syntax
Browse files Browse the repository at this point in the history
Mention the `import foo {.all.}` syntax in the manual,
with a caveat about private imports.
Also link to the experimental importutils module.
  • Loading branch information
adigitoleo committed Jan 13, 2022
1 parent 9888a29 commit b2d7814
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6350,6 +6350,12 @@ does not export these identifiers.

The `import` statement is only allowed at the top level.

In some situations, it may be useful to import all symbols (public or private)
from a module. The syntax `import foo {.all.}` can be used to import all
symbols from the module `foo`. Note that importing private symbols is
generally not recommended.

See also the experimental `importutils <importutils.html>`_ module.

Include statement
-----------------
Expand Down

0 comments on commit b2d7814

Please sign in to comment.