Commit bfc8fe4d authored by Georg Brandl's avatar Georg Brandl

Document how to refer to decorators and decorator methods.

parent 283b1255
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment