[Cython] size_t problem
Michael Abshoff
michael.abshoff at googlemail.com
Thu Feb 12 01:46:07 CET 2009
Jason Evans wrote:
> Lisandro Dalcin wrote:
>> [...] this is spotting a portability
>> problem on your code in previous Cython versions :-).
>>
>> On Wed, Feb 11, 2009 at 5:32 PM, Jason Evans <jasone at canonware.com> wrote:
>>> I have a class declaration that looks like:
>>>
>>> cdef class DistMatrix:
>>> # ...
>>> cdef readonly size_t ntaxa
>
> I don't understand what portability problem you're referring to.
> Assuming that size_t was defined to be unsigned long or unsigned long
> long (depending on the platform), why would there be a problem?
Code created by Cython on one platform ought to work on another
platform. And since Python.h provides that info about the size of size_t
for you why bother to implement that independently?
> Thanks,
> Jason
Cheers,
Michael
> P.S. The changes Robert pushed today allow my code to build and run
> again. Thanks Robert!
> _______________________________________________
> Cython-dev mailing list
> Cython-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/cython-dev
>
More information about the Cython-dev
mailing list