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 _______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev