[Python-checkins] r62394 - doctools/trunk/doc/markup/inline.rst
georg.brandl
python-checkins at python.org
Sat Apr 19 19:00:31 CEST 2008
Author: georg.brandl
Date: Sat Apr 19 19:00:31 2008
New Revision: 62394
Log:
:func: et al. should not include parens.
Modified:
doctools/trunk/doc/markup/inline.rst
Modified: doctools/trunk/doc/markup/inline.rst
==============================================================================
--- doctools/trunk/doc/markup/inline.rst (original)
+++ doctools/trunk/doc/markup/inline.rst Sat Apr 19 19:00:31 2008
@@ -57,8 +57,9 @@
.. role:: func
The name of a Python function; dotted names may be used. The role text
- should include trailing parentheses to enhance readability. The parentheses
- are stripped when searching for identifiers.
+ needs not include trailing parentheses to enhance readability; they will be
+ added automatically by Sphinx if the :confval:`add_function_parentheses`
+ config value is true (the default).
.. role:: data
@@ -76,7 +77,8 @@
.. role:: meth
The name of a method of an object. The role text should include the type
- name, method name and the trailing parentheses. A dotted name may be used.
+ name and the method name; if it occurs within the description of a type,
+ the type name can be omitted. A dotted name may be used.
.. role:: attr
More information about the Python-checkins
mailing list