This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author scoder
Recipients eli.bendersky, jkloth, scoder, serhiy.storchaka, vstinner
Date 2017-09-17.20:28:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1505680096.74.0.861613236154.issue31499@psf.upfronthosting.co.za>
In-reply-to
Content
Minimal reproducer seems to be this: ---------- import xml.etree.ElementTree as etree def test(): parser = etree.XMLParser() try: parser.close() except etree.ParseError as exc: e = exc # must keep local reference! test() ---------- The master gitrev I tested is 132a7d7cdbc7cb89fa1c1f4e8192241c3d68f549 Since this happens during GC and finalisation, it's quite possible that it's not a bug in ET per se. It might just be a prematurely cleared reference in some tp_clear(), or something like that. (Changing ticket title appropriately.)
History
Date User Action Args
2017-09-17 20:28:16scodersetrecipients: + scoder, vstinner, jkloth, eli.bendersky, serhiy.storchaka
2017-09-17 20:28:16scodersetmessageid: <1505680096.74.0.861613236154.issue31499@psf.upfronthosting.co.za>
2017-09-17 20:28:16scoderlinkissue31499 messages
2017-09-17 20:28:16scodercreate