[Cython] Module docstrings
Stefan Behnel
stefan_ml at behnel.de
Fri Oct 17 09:29:37 CEST 2008
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, ...).
We already special case future imports using a "first statement" hint.
That might be a way to fix this.
Stefan
More information about the Cython-dev
mailing list