[Python-Dev] xml issue in 2.5

Neal Norwitz nnorwitz at gmail.com
Mon Jul 10 06:00:49 CEST 2006


http://python.org/sf/1513611
xml.sax.ParseException weirdness in python 2.5b1.  The following code
doesn't work:

from xml.sax import make_parser, SAXParseException

parser = make_parser()
try:
    parser.parse(StringIO('invalid'))
except SAXParseException:
    print 'caught it!'

Any comments?

n


More information about the Python-Dev mailing list