diff options
author | Georg Brandl <georg@python.org> | 2014-01-26 11:51:09 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-01-26 11:51:09 +0100 |
commit | 4b0d09374e4c781cd991a0a1ff19547025e009b7 (patch) | |
tree | 031a6bce3bb6ad109935c01f226b89bdc425e60b /doc/domains.rst | |
parent | f5bf48f8160352370a0620fc78f9a98984b03c39 (diff) | |
parent | 17415fdff3b2232b2b84cef56c959b8ff51963a6 (diff) | |
download | sphinx-4b0d09374e4c781cd991a0a1ff19547025e009b7.tar.gz |
merge with stable
Diffstat (limited to 'doc/domains.rst')
-rw-r--r-- | doc/domains.rst | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/doc/domains.rst b/doc/domains.rst index 4b5a9032..483052a9 100644 --- a/doc/domains.rst +++ b/doc/domains.rst @@ -157,17 +157,6 @@ declarations: The following directives are provided for module and class contents: -.. rst:directive:: .. py:data:: name - - Describes global data in a module, including both variables and values used - as "defined constants." Class and object attributes are not documented - using this environment. - -.. rst:directive:: .. py:exception:: name - - Describes an exception class. The signature can, but need not include - parentheses with constructor arguments. - .. rst:directive:: .. py:function:: name(parameters) Describes a module-level function. The signature should include the @@ -178,11 +167,23 @@ The following directives are provided for module and class contents: For methods you should use :rst:dir:`py:method`. - The description should include information about the parameters required and - how they are used (especially whether mutable objects passed as parameters - are modified), side effects, and possible exceptions. This information can - optionally be given in a structured form, see :ref:`info-field-lists`. A - small example may be provided. + The description normally includes information about the parameters required + and how they are used (especially whether mutable objects passed as + parameters are modified), side effects, and possible exceptions. + + This information can (in any ``py`` directive) optionally be given in a + structured form, see :ref:`info-field-lists`. + +.. rst:directive:: .. py:data:: name + + Describes global data in a module, including both variables and values used + as "defined constants." Class and object attributes are not documented + using this environment. + +.. rst:directive:: .. py:exception:: name + + Describes an exception class. The signature can, but need not include + parentheses with constructor arguments. .. rst:directive:: .. py:class:: name .. py:class:: name(parameters) |