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 lazka, luch, r.david.murray
Date 2017-12-12.18:22:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513102978.96.0.213398074469.issue32268@psf.upfronthosting.co.za>
In-reply-to
Content
We generally don't do advance type checking (look before you leap) in Python.  This allows a type the programmer hadn't planned for to be used as long as it "quacks like" the expected type (this is called duck typing).  So the error was produced exactly where it should be and exactly as it should be: it was produced by the StringIO object you provided, when quopri tried to write the binary output that it produces to the object you handed it.
History
Date User Action Args
2017-12-12 18:22:58r.david.murraysetrecipients: + r.david.murray, luch, lazka
2017-12-12 18:22:58r.david.murraysetmessageid: <1513102978.96.0.213398074469.issue32268@psf.upfronthosting.co.za>
2017-12-12 18:22:58r.david.murraylinkissue32268 messages
2017-12-12 18:22:58r.david.murraycreate