Hi Georg,

Here below is an example of a class that causes the problem.

The HTML output below the class name (and base name) is

%MatPlotLib implementation
%
%test
%
%MatPlotLib implementation
%
%test


class mplotlib(plotter):
    """
    MatPlotLib implementation

    test
    """
    linestyles = ('-', '--', ':', '.')
    pointstyles = ('o', '^', 'x', '+', 's', 'v', '>', '<')
    colors = ('g', 'r', 'y', 'b', 'k', 'm', 'c')

    def __init__(self):
        """ Initialize matplotlib

        test2"""

        import matplotlib
        import pylab
        self.pylab = pylab

    def plot(self, plotable, title, groups=[], *args, **kargs):
        """
        Plot a plotable with title
        groups : list of group (int) to plot
        """
        ....


thanks
Thomas

>
> [email protected] schrieb:
>> Dear all,
>>
>> I've been using Sphinx for a week now to document a python/c++ project
>> and I should say that I'm quite happy about it and will pursue in this
>> direction.
>>
>> However, I've noticed that none of the __init__ functions appear in
>> the documentation pages when using the *automodule* option.
>>
>> Reading the sphinx documentation I figured out that I could use the
>> *autoclass_content* option in the conf.py file. So, I set it to 'both'
>> so as to get the docstring of the class as well as the docstring of
>> the __init__ constructor. However, the result is not correct, or at
>> least it is not what I expected: instead of the class docstring
>> followed by the __init__'s docstring, I get the class docstring
>> twice.
>>
>>
>> Any thoughts or help on this issue ?
>> cheers,
>> Thomas Cokelaer
>>
>> PS: I was using the version 0.5.1
>
> Hmm, I've tried to reproduce this, but I cannot find a problem with 0.5.1
> and an example class.  How does your class look like?  How do you use
> autoclass/automodule?
>
> Georg
>
> >
>


-- 
Dr Thomas Cokelaer
UMR DAP
Avenue d'Agropolis - TA A-96/02 (Bat 2)
34398 Montpellier Cedex 5
Tel: 04 67 71 58 00 (ask number 5471)



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to