Author eric.smith
Recipients arjennienhuis, benjamin.peterson, christian.heimes, eric.smith, exarkun, ezio.melotti, loewis, martin.panter, serhiy.storchaka, terry.reedy, uau, vstinner
Date 2012-10-02.13:16:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1349183772.93.0.131015130184.issue3982@psf.upfronthosting.co.za>
In-reply-to
Content
I was just logging in to make this point, but Serhiy beat me to it. When I wrote several years ago that this was "easy", it was before the (awesome) PEP 393 work. I suspect, but have not verified, that having a bytes version of this code would now require an implementation that shared very little with the str version.

So I think Martin's advice to just encode to ascii is the best course of action.
History
Date User Action Args
2012-10-02 13:16:12eric.smithsetrecipients: + eric.smith, loewis, terry.reedy, exarkun, vstinner, christian.heimes, benjamin.peterson, ezio.melotti, arjennienhuis, uau, martin.panter, serhiy.storchaka
2012-10-02 13:16:12eric.smithsetmessageid: <1349183772.93.0.131015130184.issue3982@psf.upfronthosting.co.za>
2012-10-02 13:16:12eric.smithlinkissue3982 messages
2012-10-02 13:16:12eric.smithcreate