David Cournapeau wrote:
> Is it possible to include docstring in a cdef class exactly as it
> would work for python classes, or do I have to use python wrappers
> around the cython class ? As an example:
>
> cdef Yo:
> def __init__(selg, arg1='arg1'):
> "Some doc"
>
> The Yo.__init__.__doc__ is not "some doc", and I can't get the
> signature in ipython. Is this expected, or am I doing something wrong
> here ?
I find this unexpected, too. However, have you tried putting the docstring
where it actually belongs? As in
cdef class Yo:
"Some doc"
...
Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev