[pypy-dev] Problem with PyPy3 and lxml

2014-09-25 Thread Eugenio Cano-Manuel Mendoza
Hello, I'm currently trying to install lxml inside a virtual environment using PyPy3 (pypy3 2.3.1). During the compilation part, lxml fails to build. I asked on #pypy and they pointed me to lxml-cffi but it fails to build as well (error message here http://pastebin.com/LUw3FrDK). It works without

Re: [pypy-dev] Declaring a function that returns a string in CFFI

2014-09-25 Thread Eleytherios Stamatogiannakis
On 25/09/14 15:10, Armin Rigo wrote: Hi, On 25 September 2014 09:06, Elefterios Stamatogiannakis wrote: Unfortunately, the C library that i use (libsqlite3) does not provide a function like that :( . It has a function that returns the size of the string, but in my tests the overhead of doing a

Re: [pypy-dev] Declaring a function that returns a string in CFFI

2014-09-25 Thread Armin Rigo
Hi, On 25 September 2014 09:06, Elefterios Stamatogiannakis wrote: > Unfortunately, the C library that i use (libsqlite3) does not provide a > function like that :( . It has a function that returns the size of the > string, but in my tests the overhead of doing another CFFI call (to find the > si

Re: [pypy-dev] Declaring a function that returns a string in CFFI

2014-09-25 Thread Elefterios Stamatogiannakis
On 24/09/14 20:13, Armin Rigo wrote: Hi, On 23 September 2014 14:54, Eleytherios Stamatogiannakis wrote: p = clib.getString(...)# a "char *" length = clib.strlen(p) # the standard strlen() function from C b = unicode(ffi.buffer(p, length), 'utf-8') I've tried that, and the overhe