I wrote a python class and I made the documentation with sphinx. For example, the class looks like :
class Aclass(object):
\"\"\" my class \"\"\"
de
There is a bug report about this (created 2012-03-30; still open 2015-12-12): https://github.com/sphinx-doc/sphinx/issues/904.
The problem with an explicit :members:
list containing instance attributes was fixed in this commit (included in Sphinx 1.2b1).
As mentioned in a comment (from Jon Waltman), there is an undocumented autoinstanceattribute
directive.
Using .. autoinstanceattribute:: aclass.Aclass.a
does work (tested with Sphinx 1.1.3 and 1.2b1).