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 mattheww
Recipients docs@python, eric.smith, mattheww, rhettinger, serhiy.storchaka
Date 2021-03-01.20:10:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614629448.03.0.727139719651.issue43340@roundup.psfhosted.org>
In-reply-to
Content
Further, "is not valid UTF-8" isn't quite true because the decoding is done with 'surrogatepass' set.

In practice I don't think many users will care which of the two exceptions they get for which inputs, but it's useful to know how broad your catch has to be if you're using load() on possibly-invalid inputs.
History
Date User Action Args
2021-03-01 20:10:48matthewwsetrecipients: + mattheww, rhettinger, eric.smith, docs@python, serhiy.storchaka
2021-03-01 20:10:48matthewwsetmessageid: <1614629448.03.0.727139719651.issue43340@roundup.psfhosted.org>
2021-03-01 20:10:48matthewwlinkissue43340 messages
2021-03-01 20:10:47matthewwcreate