Author vstinner
Recipients eli.bendersky, jkloth, scoder, serhiy.storchaka, vstinner
Date 2017-09-18.07:32:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Python 2.7 is not affected because it doesn't implement tp_clear (it doesn't have xmlparser_gc_clear()), only xmlparser_dealloc() calls EXPAT(ParserFree)(self->parser).

I'm unable to reproduce the bug in Python 3.5 nor 3.6. creates a reference cycle the "except etree.ParseError as exc: e = exc  # must keep local reference!" which requires to trigger a garbage collection to clear the "parser" variable.
Date User Action Args
2017-09-18 07:32:39vstinnersetrecipients: + vstinner, scoder, jkloth, eli.bendersky, serhiy.storchaka
2017-09-18 07:32:39vstinnersetmessageid: <>
2017-09-18 07:32:39vstinnerlinkissue31499 messages
2017-09-18 07:32:39vstinnercreate