I have a python class with some constants

    class A(object):

       #: Descriptive X Comment
       x = 'x value'

       #: Descriptive Y Comment
       y = 'y value'

       #: Descriptive Z Comment
       z = 'z value'

Using the autoattribute I can display the Descriptive Comments

    .. autoattribute:: A.x
        :annotation:

which generates this:

    A.x
        Descriptive Comments

But I would like to display them in another format, say a table

    | Name | Value   | Description           |
    | x    | x value | Descriptive X Comment |
    | y    | y value | Descriptive Y Comment |
    | z    | x value | Descriptive Y Comment |

and I want this table to automatically grow or shrink based on the members 
of the class.

I can create a docutils' rst directive to do this, but for each static 
member, let's say 'x', how can I extract the comments?

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to