[lxml-dev] lxml segfaults
John Morris
jman at zultron.com
Thu Jul 3 21:07:41 CEST 2008
I'm trying to subclass lxml._Element. I'm completely new to python, so
I'm definitely doing something wrong. The code below segfaults. Tried
this with both lxml 1.3.6 and 2.0.7 (both from EPEL 5) along with
libxslt 1.1.17 (CentOS 5 updates). Someone beat me over the head with a
clue?
Thanks!
John
Sysconf.py:
--------------------
from lxml import etree
class Sysconf(etree._Element):
def __init__(self,datastore):
etree._Element.__init__(self)
test.py:
--------------------
#!/usr/bin/python
from lxml import etree
import Sysconf
sysconf = Sysconf.Sysconf("sysconf.xml")
print etree.tostring(sysconf)
More information about the lxml-dev
mailing list