Hi,

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:

class Yo:
    def __init__(self, arg1='arg1'):
        "some doc"

This python class can be queried easily from ipython for
documentation, including the signature and default argument values.
But the docstring is not available if the class is a cdef class in
cython:

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 ?

cheers,

David
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to