[Cython] Bug: C++ strings defined in a PXD file are empty

Stefan Behnel stefan_ml at behnel.de
Wed Jul 17 14:17:50 CEST 2013


Yury V. Zaytsev, 17.07.2013 13:59:
> Please find a minimal reproducer attached:
> 
>     In [1]: import pxdbug
>     This should show 'bad value': 
>     This should show 'good value': good value
> 
> Is this a real bug or I'm missing something fundamental about the PXD
> files?

There is only one case where we allow code in .pxd files, and that's for
inlined functions/methods. Your code should result in a compile error.


> If it's the former, shall I create an issue on the Trac or
> GitHub?

Trac for bugs, github for fixes. If you don't have a trac account, please
send an htaccess encrypted password to Robert.

Stefan



More information about the cython-devel mailing list