[pypy-dev] Bringing Cython and PyPy closer together

Stefan Behnel stefan_ml at behnel.de
Sat Feb 18 13:38:56 CET 2012

Amaury Forgeot d'Arc, 18.02.2012 10:08:
> I made some modifications to pypy, cython and lxml,
> and now I can compile and install cython, lxml, and they seem to work!
> For example::
>     html = etree.Element("html")
>     body = etree.SubElement(html, "body")
>     body.text = "TEXT"
>     br = etree.SubElement(body, "br")
>     br.tail = "TAIL"
>     html.xpath("//text()")
> Here are the changes I made, some parts are really hacks and should be
> polished:
> lxml: http://paste.pocoo.org/show/552903/

I attached a reworked but untested patch for lxml. Could you try it?

I couldn't find the PyWeakref_LockObject() function anywhere. That's a
PyPy-only thing, right? I aliased it to (NULL) when compiling for CPython.

I'll go through the Cython changes next, so I haven't got a working Cython
version yet.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pypy-support.patch
Type: text/x-patch
Size: 4020 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20120218/f8879b7c/attachment.bin>

More information about the pypy-dev mailing list