Skip to content

Link sys constants in pkgutil.rst #32356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Doc/library/pkgutil.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ support.
__path__ = extend_path(__path__, __name__)

This will add to the package's ``__path__`` all subdirectories of directories
on ``sys.path`` named after the package. This is useful if one wants to
on :data:`sys.path` named after the package. This is useful if one wants to
distribute different parts of a single logical package as multiple
directories.

Expand Down Expand Up @@ -128,9 +128,9 @@ support.

Yield :term:`finder` objects for the given module name.

If fullname contains a '.', the finders will be for the package
If fullname contains a ``'.'``, the finders will be for the package
containing fullname, otherwise they will be all registered top level
finders (i.e. those on both sys.meta_path and sys.path_hooks).
finders (i.e. those on both :data:`sys.meta_path` and :data:`sys.path_hooks`).

If the named module is in a package, that package is imported as a side
effect of invoking this function.
Expand All @@ -145,7 +145,7 @@ support.
.. function:: iter_modules(path=None, prefix='')

Yields :class:`ModuleInfo` for all submodules on *path*, or, if
*path* is ``None``, all top-level modules on ``sys.path``.
*path* is ``None``, all top-level modules on :data:`sys.path`.

*path* should be either ``None`` or a list of paths to look for modules in.

Expand Down