Re: Two questions.
Greg Ewing <[email protected]> Fri, 08 Aug 2008 11:06:09 +1200
| Newsgroups | gmane.comp.python.pyrex |
|---|---|
| Organization | University of Canterbury | Te Whare Wananga o Waitaha |
| Message-ID | <[email protected]> |
Martin Field wrote: > 1. I am trying to install a Python/Pyrex/C program that I have written > on a 64-bit Linux > (Gentoo) machine and am having a lot of problems with segmentation > faults. ... Any pointers > (if any) on what to do > in making the 32->64 bit transition would be appreciated. The only general advice I can think of is to make sure you're using Py_ssize_t where appropriate. Can you narrow down where the problem is occurring, and post some code? > 2. Naively I expect that there have been > quite a few changes > in the C API between 2.5 and 3 so that Pyrex will have to be updated > as well. Yes, there are a lot of changes, mostly concerned with the str/bytes split. I've made no attempt to get Pyrex to work with Py3 yet, but Cython reportedly does, so you may need to use that instead. -- Greg