pkgutil docs: Link sys constants, add backticks (GH-32356)

Co-authored-by: Éric <merwok@netwok.org>
This commit is contained in:
Boris Verkhovskiy 2022-04-06 17:51:05 -07:00 committed by GitHub
parent 85addfb9c6
commit 63bd72448a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ support.
__path__ = extend_path(__path__, __name__) __path__ = extend_path(__path__, __name__)
This will add to the package's ``__path__`` all subdirectories of directories 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 distribute different parts of a single logical package as multiple
directories. directories.
@ -128,9 +128,9 @@ support.
Yield :term:`finder` objects for the given module name. 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 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 If the named module is in a package, that package is imported as a side
effect of invoking this function. effect of invoking this function.
@ -145,7 +145,7 @@ support.
.. function:: iter_modules(path=None, prefix='') .. function:: iter_modules(path=None, prefix='')
Yields :class:`ModuleInfo` for all submodules on *path*, or, if 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. *path* should be either ``None`` or a list of paths to look for modules in.