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

Serhiy Storchaka storchaka at gmail.com
Tue Jun 14 22:09:11 EDT 2016


On 15.06.16 03:34, Terry Reedy wrote:
> A null case is the only case where an encoding is not needed, but having
> a special rule is not worth the trouble.

It is needed even in null case. bytes('', 'utf-8') != bytes('', 'utf-16').




More information about the Python-ideas mailing list