[Cython] improving Py <-> C conversion of numeric types
Robert Bradshaw
robertwb at math.washington.edu
Sun Mar 8 07:41:06 CET 2009
On Feb 26, 2009, at 10:52 AM, Lisandro Dalcin wrote:
> I'm working on a patch related to de subject of this mail, but I will
> need any of you to make some coments on the above ....
>
> In [1]: from Cython.Compiler import PyrexTypes
>
> In [2]: PyrexTypes.c_anon_enum_type.rank
> Out[2]: -1
>
> In [3]: PyrexTypes.c_anon_enum_type.sign_and_name()
> Out[3]: 'long double'
>
>
> [2] seems fine, but what about [3] ?? Should we specialize the method
> and make it return 'int' ??
Yes. Actually, isn't "sign_and_name" supposed to return the actual
name of the enum?
- Robert
More information about the Cython-dev
mailing list