← Back to team overview

dolfin team mailing list archive

Setting docstring from another string...

 

Hello!

I think we have discussed this before, but I just tried setting a docstring in 
the Python layer of dolfin from a generated docstring from the cpp layer. I 
tried several different ways:

    def collapse(...):
        "dummy"

FunctionSpaceBase.collapse.__doc__ = cpp.FunctionSpace.collapse.__doc__

    def collapse(...):
        cpp.FunctionSpace.collapse.__doc__

    def collapse(...):
        __doc__ = cpp.FunctionSpace.collapse.__doc__

but none worked as expected. Any clues?

Johan


Follow ups