Author hanno
Recipients berker.peksag, ezio.melotti, hanno, iritkatriel, steven.daprano
Date 2022-01-14.14:29:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642170569.89.0.465408998029.issue32876@roundup.psfhosted.org>
In-reply-to
Content
Now the example code raises an AssertionError(). Is that intended? I don't think that's any better.

I usually wouldn't expect an HTML parser to raise any error if you pass it a string, but instead to do fault tolerant parsing. And if it's expected that some inputs can generate exceptions, at least I think this should be properly documented.
History
Date User Action Args
2022-01-14 14:29:29hannosetrecipients: + hanno, ezio.melotti, steven.daprano, berker.peksag, iritkatriel
2022-01-14 14:29:29hannosetmessageid: <1642170569.89.0.465408998029.issue32876@roundup.psfhosted.org>
2022-01-14 14:29:29hannolinkissue32876 messages
2022-01-14 14:29:29hannocreate