Message302415
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.
bug2.py 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:39 | vstinner | set | recipients:
+ vstinner, scoder, jkloth, eli.bendersky, serhiy.storchaka |
2017-09-18 07:32:39 | vstinner | set | messageid: <1505719959.78.0.466544307803.issue31499@psf.upfronthosting.co.za> |
2017-09-18 07:32:39 | vstinner | link | issue31499 messages |
2017-09-18 07:32:39 | vstinner | create | |
|