I would be happy even with a variety of hacks : most of these
functions are one-liners. Is there some way to just post the function
definition in the documentation ? Either in the object title or in the
documentation below ? I can do this by hand but then the documentation
does not automatically track changes in the code. Any ideas ?

--mrule

On Thu, Apr 8, 2010 at 9:17 PM, Michael Rule <[email protected]> wrote:
> Something like 80% of this library I am trying to document isn't
> declared with the traditional "def" syntax. I've figured out that
> Sphinx can produce reasonable documentation if I include a
> triple-quote string after the function declaration, but its not
> picking up arguments properly. Is there some way to the nice foo(a,b)
> format you get with def for functions declared as lambda functions ?
> You could even guess curried functions, if foo = lambda x:lambday:x+y
> then you could output foo(x)(y) in the documentation. Anyway, does
> anyone have any good ideas besides re-writing the entire library with
> "def" notation ?
>
> --mrule
>

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