summaryrefslogtreecommitdiffstats
path: root/Doc/documenting
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-08-15 18:41:25 (GMT)
committerGeorg Brandl <georg@python.org>2007-08-15 18:41:25 (GMT)
commit7f758c49fa9a20df696c0447b14dd4fb75e83662 (patch)
treef198208f2a8228bc1d7e70f05d284e4ba131b215 /Doc/documenting
parent09a5c3e6bbfe5fe5bcaa2025fc2c9ffcb9b92936 (diff)
downloadcpython-7f758c49fa9a20df696c0447b14dd4fb75e83662.zip
cpython-7f758c49fa9a20df696c0447b14dd4fb75e83662.tar.gz
cpython-7f758c49fa9a20df696c0447b14dd4fb75e83662.tar.bz2
Mark deprecated modules as such.
Diffstat (limited to 'Doc/documenting')
-rw-r--r--Doc/documenting/markup.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/documenting/markup.rst b/Doc/documenting/markup.rst
index 831fad9..ce042a5 100644
--- a/Doc/documenting/markup.rst
+++ b/Doc/documenting/markup.rst
@@ -79,6 +79,9 @@ As you can see, the module-specific markup consists of two directives, the
The ``synopsis`` option should consist of one sentence describing the
module's purpose -- it is currently only used in the Global Module Index.
+ The ``deprecated`` option can be given (with no value) to mark a module as
+ deprecated; it will be designated as such in various locations then.
+
.. describe:: moduleauthor
The ``moduleauthor`` directive, which can appear multiple times, names the
@@ -333,6 +336,13 @@ the current module, or the built-in function of that name. In contrast,
``:func:`foo.filter``` clearly refers to the ``filter`` function in the ``foo``
module.
+Normally, names in these roles are searched first without any further
+qualification, then with the current module name prepended, then with the
+current module and class name (if any) prepended. If you prefix the name with a
+dot, this order is reversed. For example, in the documentation of the
+:mod:`codecs` module, ``:func:`open``` always refers to the built-in function,
+while ``:func:`.open``` refers to :func:`codecs.open`.
+
A similar heuristic is used to determine whether the name is an attribute of
the currently documented class.