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 martin.panter
Recipients docs@python, ezio.melotti, martin.panter, r.david.murray, serhiy.storchaka, xkjq
Date 2015-03-08.02:33:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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?
Date User Action Args
2015-03-08 02:33:55martin.pantersetrecipients: + martin.panter, ezio.melotti, r.david.murray, docs@python, serhiy.storchaka, xkjq
2015-03-08 02:33:55martin.pantersetmessageid: <>
2015-03-08 02:33:55martin.panterlinkissue23144 messages
2015-03-08 02:33:55martin.pantercreate