[issue14852] json and ElementTree parsers misbehave on streams containing more than a single object

R. David Murray report at bugs.python.org
Fri May 25 21:32:35 CEST 2012


R. David Murray <rdmurray at 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 <report at bugs.python.org>
<http://bugs.python.org/issue14852>
_______________________________________


More information about the Python-bugs-list mailing list