[Python-Dev] PEP 460: allowing %d and %f and mojibake

Stephen J. Turnbull stephen at xemacs.org
Wed Jan 15 06:57:57 CET 2014
Steven D'Aprano writes:

 > I thought I understand the purpose of asciistr was exactly that, to
 > produce something that was compatible with both bytes and strings.

asciistr *canonizes* something as an ASCII string, and therefore
compatible with both bytes and str.  It can't *create* such a thing ex
nihilo.


More information about the Python-Dev mailing list