[XML-SIG] Can't make more than one parser
Dave
dwallace@udel.edu
Tue, 03 Oct 2000 22:26:43 -0400
Hello,
I appologize if it is premature to report this on your development tree
but I have been seeing it for a several days now and wanted you to be aware.
Using the latest PyXML CVS checkout, the following code throws an
exception at the second make_parser call. This happens in Python2.0
(also latest CVS) and Python1.6.
from xml.sax.saxexts import make_parser
p = make_parser()
if p:
print "* got one *"
q = make_parser()
if q:
print "* got the other *"
The exception thrown is:
Traceback (most recent call last):
File "test_xml.py", line 8, in ?
q = make_parser()
File "/usr/local/lib/python1.6/site-packages/_xmlplus/sax/saxexts.py",
line 158, in make_parser
return XMLParserFactory.make_parser(parser_list)
File "/usr/local/lib/python1.6/site-packages/_xmlplus/sax/saxexts.py",
line 63, in make_parser
return self._create_parser(parser_name)
File "/usr/local/lib/python1.6/site-packages/_xmlplus/sax/saxexts.py",
line 43, in _create_parser
return drv_module.create_parser()
AttributeError: create_parser
Dave.