R. David Murray <rdmur...@bitdance.com> added the comment: I think it is perfectly reasonable for a parser to leave the file pointer in some undefined further location into the file when it detects "extra stuff" and produces an error message. One can certainly argue that producing that error message is a feature ("detect badly formed documents").
I also think that your use case is a perfectly reasonable one, but I think a mode that supports your use case would be an enhancement. ---------- nosy: +r.david.murray type: -> enhancement versions: +Python 3.3 -Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14852> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com