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 serhiy.storchaka
Recipients eli.bendersky, scoder, serhiy.storchaka, vstinner
Date 2017-05-05.04:36:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493958996.46.0.433041016231.issue30264@psf.upfronthosting.co.za>
In-reply-to
Content
As you said, calling close() can have side effects (for example invoking self._cont_handler.endDocument()). This was the argument against PR 1444.

It seems to me that if _entity_stack is not empty (this happens in case of error in entity parsing) the close() method does nothing. And maybe there are other leaks in entity parsing.
History
Date User Action Args
2017-05-05 04:36:36serhiy.storchakasetrecipients: + serhiy.storchaka, scoder, vstinner, eli.bendersky
2017-05-05 04:36:36serhiy.storchakasetmessageid: <1493958996.46.0.433041016231.issue30264@psf.upfronthosting.co.za>
2017-05-05 04:36:36serhiy.storchakalinkissue30264 messages
2017-05-05 04:36:36serhiy.storchakacreate