← Back to team overview

dolfin team mailing list archive

Re: pydoc

 

On Thursday 10 December 2009 09:24:06 Anders Logg wrote:
> On Thu, Dec 10, 2009 at 09:15:07AM -0800, Johan Hake wrote:
> > On Thursday 10 December 2009 08:19:13 Anders Logg wrote:
> > > Does anyone have any experience with pydoc and DOLFIN? Johan?
> > >
> > > I've received some questions from some new users and apparently it
> > > works for some classes but not others. I can have a closer look but
> > > someone might already know how to fix it.
> >
> > I have not looked to much into either pydoc or epydoc. I tried to
> > generate some documentations using both. After I removed the
> > installation, it seemed that old .pyc files caused some trouble, I
> > managed to build some nice documentation with epydoc. Take a look at:
> >
> >   <http://folk.uio.no/hake/dolfin_doc>
> 
> Looks ok but it could probably need some stylesheet to look better.

Definitely

> > For a closer look. We (me and Martin) has tried to make new docstring
> > written in epytext markup language. I see that this is caught by the
> > generated epydocs but not all of it, due to wrong syntax and other
> > embarrassing stuff.
> >
> > It should be possible to automagically generate these files and hand to
> > the community in the same manner as the C++ references are generated.
> >
> > I got some warnings though during the compilation, typically:
> >
> >   compile_expressions is shadowed by compile_expressions
> >
> > so it does not like us importing a function with the same name as the
> > module, which it is imported from. We do this a lot. Any objections for
> > changing the name of the python modules?
> 
> No objections. We should also try to avoid "_" in module names as
> suggested by the Python coding style PEP.

Ok, I can make the changes. Have anyone dared to run the python module through 
pylint or pychecker?

Johan



Follow ups

References