summaryrefslogtreecommitdiffstats
path: root/Doc/library/importlib.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-07-29 16:01:11 (GMT)
committerGeorg Brandl <georg@python.org>2010-07-29 16:01:11 (GMT)
commit8a1caa2361b86baeadfe5343b0c74fe9dec2a4ce (patch)
treea61437b150df841a5de65b9bb92456e0e3b4139a /Doc/library/importlib.rst
parentb0a4e3c1a747a1f40be0d0e4d2ab785b052673c2 (diff)
downloadcpython-8a1caa2361b86baeadfe5343b0c74fe9dec2a4ce.zip
cpython-8a1caa2361b86baeadfe5343b0c74fe9dec2a4ce.tar.gz
cpython-8a1caa2361b86baeadfe5343b0c74fe9dec2a4ce.tar.bz2
#6522: add a "decorator" directive to explicitly document decorators, and use it in a few places.
Diffstat (limited to 'Doc/library/importlib.rst')
-rw-r--r--Doc/library/importlib.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index 7a2434e..1b4e5fd 100644
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -469,7 +469,7 @@ find and load modules.
This module contains the various objects that help in the construction of
an :term:`importer`.
-.. function:: module_for_loader(method)
+.. decorator:: module_for_loader
A :term:`decorator` for a :term:`loader` method,
to handle selecting the proper
@@ -494,7 +494,7 @@ an :term:`importer`.
Use of this decorator handles all the details of which module object a
loader should initialize as specified by :pep:`302`.
-.. function:: set_loader(fxn)
+.. decorator:: set_loader
A :term:`decorator` for a :term:`loader` method,
to set the :attr:`__loader__`
@@ -502,7 +502,7 @@ an :term:`importer`.
does nothing. It is assumed that the first positional argument to the
wrapped method is what :attr:`__loader__` should be set to.
-.. function:: set_package(fxn)
+.. decorator:: set_package
A :term:`decorator` for a :term:`loader` to set the :attr:`__package__`
attribute on the module returned by the loader. If :attr:`__package__` is