![](https://secure.gravatar.com/avatar/8b97b5aad24c30e4a1357b38cc39aeaa.jpg?s=120&d=mm&r=g)
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/
The weakref changes are really unfortunate as they appear in one of the most performance critical spots of lxml's API: on-the-fly proxy creation. I can understand why the original code won't work as is, but could you elaborate on why the weak references are needed? Maybe there is a faster way of doing this? Stefan