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 79d5476
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/manual_experimental.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,17 @@ This feature will likely be superseded in the future by support for
recursive module dependencies.


Importing private symbols
=========================

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.


Code reordering
===============

Expand Down

0 comments on commit 79d5476

Please sign in to comment.