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 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 <>
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.
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: <>
2012-10-02 13:16:12eric.smithlinkissue3982 messages
2012-10-02 13:16:12eric.smithcreate