Serhiy Storchaka added the comment: > If you use directly the parser class and pass an open file object, in that > case, yes, my change closes the file.
Or if the high-level *function* parse() is called with an open file object. I don't know whether this is desirable change, but this change can break third-party code, therefore it should be documented in Misc/NEWS. And it is worth to add a check in test_parse_bytes that the passed file object is closed after error. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30264> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com