Terry J. Reedy <tjre...@udel.edu> added the comment:
An exception is not a crash. An intended exception is not even a bug. A bug is a discrepancy between behavior and doc. In this case, email.parser.Feedparser is imported from email.feedparser. Its doc https://docs.python.org/2.7/library/email.parser.html#feedparser-api says "feed(data) Feed the FeedParser some more data. data should be a string containing one or more lines." In addition, html.parser.HTMLParser.feed(data) say "data must be str." For either, behavior upon passing anything else is undefined. Defining the behavior for None, and defining it to be 'return something' rather than 'raise something', would be an enhancement. Such enhancements are only added, if deemed desirable, in future versions. (Note: I recommend against resubmitting this for 3.8. Masking bugs in 3rd party code is contrary to policy. There would have to be a positive use-case of benefit large enough to multiple users to overcome the masking deficit.) ---------- nosy: +terry.reedy resolution: -> not a bug stage: patch review -> resolved status: open -> closed type: crash -> enhancement _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34102> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com