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 vstinner
Recipients pkt, vstinner
Date 2015-07-22.07:28:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437550085.95.0.637896375978.issue24684@psf.upfronthosting.co.za>
In-reply-to
Content
5513	        idna = _PyObject_CallMethodId(hobj, &PyId_encode, "s", "idna");
5514	        if (!idna)
5515	            return NULL;
5516	        assert(PyBytes_Check(idna));

The assertion fails because the custom string type in poc_getaddr.py returns an integer, not a byte string.

IMHO we should call PyUnicode_AsEncodedObject() instead of calling the encode() method.
History
Date User Action Args
2015-07-22 07:28:05vstinnersetrecipients: + vstinner, pkt
2015-07-22 07:28:05vstinnersetmessageid: <1437550085.95.0.637896375978.issue24684@psf.upfronthosting.co.za>
2015-07-22 07:28:05vstinnerlinkissue24684 messages
2015-07-22 07:28:05vstinnercreate