[Pyrex] Implicit conversions failing
Greg Ewing
greg at cosc.canterbury.ac.nz
Mon May 19 04:35:28 CEST 2003
> I'm seeing cases where pyrex-generated code is failing to implicitly
> convert between Python long objects and C long ints, eg:
>
> def pythonFunc(somelong):
> result = cFunc(somelong)
>
> cdef void someCfunc(long fred):
> pythonFunc(fred)
>
> Is it actually poor Pyrex coding practice to expect these implicit
> conversions to happen properly?
No, they certainly should happen automatically.
Can you give me a short example which actually generates
incorrect C code? I tried the two you gave, and I can't
see anything wrong with the generated code.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Pyrex
mailing list