From: Georg Brandl Date: Mon, 2 Aug 2010 12:54:24 +0000 (+0000) Subject: Document how to refer to decorators and decorator methods. X-Git-Tag: v3.2a2~541 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bfc8fe4d2f6b2296a16b7f7d9634437c40950dd8;p=python Document how to refer to decorators and decorator methods. --- diff --git a/Doc/documenting/markup.rst b/Doc/documenting/markup.rst index e48bb01f72..b4421cb23b 100644 --- a/Doc/documenting/markup.rst +++ b/Doc/documenting/markup.rst @@ -205,6 +205,9 @@ The directives are: Set name of the decorated function to *name*. + There is no ``deco`` role to link to a decorator that is marked up with + this directive; rather, use the ``:func:`` role. + .. describe:: class Describes a class. The signature can include parentheses with parameters @@ -226,6 +229,8 @@ The directives are: Same as ``decorator``, but for decorators that are methods. + Refer to a decorator method using the ``:meth:`` role. + .. describe:: opcode Describes a Python :term:`bytecode` instruction.