Skip to content

Commit

Permalink
docs: Mention import foo {.all.} syntax (#19377)
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.

Co-authored-by: adigitoleo <[email protected]>
  • Loading branch information
adigitoleo and adigitoleo authored Jan 13, 2022
1 parent ada815e commit a913509
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 a913509

Please sign in to comment.