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 <rep...@bugs.python.org>
<http://bugs.python.org/issue23144>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to