[Python-ideas] Strings can sometimes convert to bytes without an encoding

Franklin? Lee leewangzhong+python at gmail.com
Tue Jun 14 21:27:10 EDT 2016


Withdrawing the proposal because I didn't know `bytes(s, 'ascii')` exists.

On Tue, Jun 14, 2016 at 8:17 PM, MRAB <python at mrabarnett.plus.com> wrote:
> Why is the encoding is optional (and useless)? Are you assuming that the
> user will want 'ascii'?

^ That prompted me to check.


More information about the Python-ideas mailing list