[Pyrex] Implicit conversions failing
    Jani Hakala 
    jahakala at cc.jyu.fi
       
    Sun May 18 17:20:28 CEST 2003
    
    
  
David McNab <david at rebirthing.co.nz> writes:
> Hi,
> 
> 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)
>      ...
> 
> And the other way around, eg:
> 
>   cdef void someCfunc(long fred):
>      ...
>      pythonFunc(fred)
> 
Do you have something like
cdef extern from "foo.h":
    long cFunc(long foo)
in your pyrex-file?
It would be easier to determine what is your problem if you posted a
(minimal) complete pyrex-file.
Jani Hakala
    
    
More information about the Pyrex
mailing list