Stefan wrote:
> Andrew Collette wrote:
>> I'm a having a weird problem with module docstrings using Cython
>> 0.9.8.1.1.  It seems that if a module contains any comments before the
>> docstring, it is simply ignored (module.__doc__ is None).  The docstring
>> doesn't even appear in the .c file.  FWIW, neither Pyrex nor Python
>> exhibits this behavior.
>
> Thanks for the report. Just guessing, but this might have gone lost due to
> the comment-based compiler parametrisation (file encoding, compiler
> options, ...).

Indeed. I'll take the blame for this one. Fix up at
http://hg.cython.org/cython-devel/rev/e597dcac63ac and
http://hg.cython.org/cython-devel/rev/e597dcac63ac

BTW when modifying the testcase (r_doctests.pyx), I encountered a strange
thing: If I made the doctest a unicode string, then Python 2.5 still
wouldn't print it out with a u prefix in the doctest. Is this supposed to
work differently?

Dag Sverre

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

Reply via email to