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 r.david.murray
Recipients Frederick.Ross, eli.bendersky, eric.araujo, ezio.melotti, pitrou, r.david.murray, rhettinger
Date 2012-05-25.19:32:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337974355.46.0.861487958502.issue14852@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-05-25 19:32:35r.david.murraysetrecipients: + r.david.murray, rhettinger, pitrou, ezio.melotti, eric.araujo, eli.bendersky, Frederick.Ross
2012-05-25 19:32:35r.david.murraysetmessageid: <1337974355.46.0.861487958502.issue14852@psf.upfronthosting.co.za>
2012-05-25 19:32:34r.david.murraylinkissue14852 messages
2012-05-25 19:32:34r.david.murraycreate