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 terry.reedy
Recipients barry, r.david.murray, sshnaidm, terry.reedy, xtreak
Date 2018-07-13.21:34:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531517679.43.0.56676864532.issue34102@psf.upfronthosting.co.za>
In-reply-to
Content
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.)
History
Date User Action Args
2018-07-13 21:34:39terry.reedysetrecipients: + terry.reedy, barry, r.david.murray, xtreak, sshnaidm
2018-07-13 21:34:39terry.reedysetmessageid: <1531517679.43.0.56676864532.issue34102@psf.upfronthosting.co.za>
2018-07-13 21:34:39terry.reedylinkissue34102 messages
2018-07-13 21:34:39terry.reedycreate