diff options
| author | Georg Brandl <georg@python.org> | 2011-01-03 21:56:41 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2011-01-03 21:56:41 +0100 |
| commit | c5f6cb5a2aeae8ff4ec2270800d12eccc8a99758 (patch) | |
| tree | 520c6ca043bdc32dd54b3fabcb1c3592579be925 /doc/ext | |
| parent | 5ccc8e61e714cdd969de5249070d074413aedc45 (diff) | |
| download | sphinx-c5f6cb5a2aeae8ff4ec2270800d12eccc8a99758.tar.gz | |
#520: Provide ``special-members`` option for autodoc directives.
Diffstat (limited to 'doc/ext')
| -rw-r--r-- | doc/ext/autodoc.rst | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/doc/ext/autodoc.rst b/doc/ext/autodoc.rst index ee58c060..8026972c 100644 --- a/doc/ext/autodoc.rst +++ b/doc/ext/autodoc.rst @@ -103,12 +103,20 @@ inserting them into the page source under a suitable :rst:dir:`py:module`, :members: :undoc-members: - * Private members will be included if the ``private-members`` flag option is - given:: + * "Private" members (that is, those named like ``_private`` or ``__private``) + will be included if the ``private-members`` flag option is given. + + .. versionadded:: 1.1 + + * Python "special" members (that is, those named like ``__special__``) will + be included if the ``special-members`` flag option is given:: .. autoclass:: my.Class :members: :private-members: + :special-members: + + would document both "private" and "special" members of the class. .. versionadded:: 1.1 @@ -262,8 +270,8 @@ There are also new config values that you can set: This value is a list of autodoc directive flags that should be automatically applied to all autodoc directives. The supported flags are ``'members'``, - ``'undoc-members'``, ``'private-members'``, ``'inherited-members'`` and - ``'show-inheritance'``. + ``'undoc-members'``, ``'private-members'``, ``'special-members'``, + ``'inherited-members'`` and ``'show-inheritance'``. If you set one of these flags in this config value, you can use a negated form, :samp:`'no-{flag}'`, in an autodoc directive, to disable it once. |
