[Pyrex] [Cython-dev] Segmentation Fault with -O0

Stefan Behnel stefan_ml at behnel.de
Wed Aug 15 17:48:41 CEST 2007



Samuele Kaplun wrote:
> In data giovedì 09 agosto 2007, Samuele Kaplun scribacchiaste dette parole:
>> Herm, readingly carefully I see Py_ssize_t!
>> Let's see, then.
>> Best regards,
>> 	Samuele
> 
> I've just discovered that I was right in saying that in the docs I red int. In 
> fact the buffer interface use int in Python 2.3, 2.4, and Py_ssize_t in 
> Python 2.5
> I wonder if there's a macro or a recipe to make everything happy with Pyrex. 
> Otherwise do you think that it's possible to build a .pyx that is aware of 
> the Python version?

Well, have you tried compiling it under Python 2.4? It should work out-of-the-box.

Stefan




More information about the Pyrex mailing list