[docs] [issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text
Martin Panter
report at bugs.python.org
Sun Mar 8 03:33:55 CET 2015
Martin Panter added the comment:
A context manager here would seem a bit strange. Is there any precedent for using context managers with feed parsers? The two others that come to mind are ElementTree.XMLParser and email.parser.FeedParser. These two build an object while parsing, and close() returns that object, so a context manager would be unhelpful.
If an exception is raised inside the context manager, should close() be called (like for file objects), or not?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23144>
_______________________________________
More information about the docs
mailing list