Hi,
I'm wondering whats the way to automatically reference module top level
attributes / globals?
For instance inside a class, I can use pre / post comment and the attribute
will get autodocumented:
class Library(object):
"""
| This class provides methods to bind a C / C++ Library.
| The class is a singleton and will ...
"""
librariesInstances = {}
"""Libraries instances: Each library is instanced once and stored in this
attribute. ( Dictionary )"""
Resulting in a nice output:
librariesInstances
Libraries instances: Each library is instanced once and stored in this
attribute. ( Dictionary )
How to do the same in this case:
import logging
LOGGER = logging.getLogger("MyLogger")
"""Logger used for logging purpose."""
Cheers,
Thomas
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.