Re: [Python-Dev] xml issue in 2.5

2006-07-09 Thread Martin v. Löwis
Neal Norwitz wrote: > 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: >

[Python-Dev] xml issue in 2.5

2006-07-09 Thread Neal Norwitz
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