[Cython] Docstrings for 'cdef public' attributes?

Jason Evans jasone at canonware.com
Thu Feb 5 20:00:01 CET 2009


Is there any reasonable way to attach docstrings to 'cdef public' 
attributes?  The following does not work:

cdef class Spam:
     cdef public int spam:
         """
             Docstring for spam.
         """

spam.pyx:2:9: Suite attached to non-function declaration

Thanks,
Jason


More information about the Cython-dev mailing list