On Sat, Oct 13, 2018 at 1:36 PM Miro Hrončok <mhroncok@xxxxxxxxxx> wrote: > Would changing to: > > cdef const digit* D = x.ob_digit > > do? Sadly, no. Error compiling Cython file: ------------------------------------------------------------ ... return 1 err[0] = ERR_TYPE return 0 # x is a Python "long" (called "int" on Python 3) cdef const digit* D = x.ob_digit ^ ------------------------------------------------------------ sage/arith/long.pxd:211:27: Cannot convert Python object to 'const digit *' ************************************************************************ I see references to PyLongObject in other Cythonized files, so Cython does "know about" this type in some sense. Further suggestions welcome. Regards, -- Jerry James http://www.jamezone.org/ _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx