[Cython] trying to understand why PyString_GET_SIZE cannot be cimport-ed

2017-01-07 Thread Matti Picus
I am working on a branch of PyPy 2.7 to support Pandas (default PyPy is missing some CAPI support that enables the parts of cython used in Pandas). Pandas code has these lines (in lib.pyx) try: from cpython cimport PyString_GET_SIZE except ImportError: from cpython cimport PyUnicode_GET_

Re: [Cython] trying to understand why PyString_GET_SIZE cannot be cimport-ed

2017-01-07 Thread Matti Picus
On 07/01/17 19:25, Matti Picus wrote: I am working on a branch of PyPy 2.7 to support Pandas (default PyPy is missing some CAPI support that enables the parts of cython used in Pandas). Pandas code has these lines (in lib.pyx) try: from cpython cimport PyString_GET_SIZE except ImportError