[Python-Dev] bytes type

Guido van Rossum guido at python.org
Mon Oct 3 23:02:37 CEST 2005


On 10/3/05, Antoine Pitrou <solipsis at pitrou.net> wrote:
> Could the "bytes" type be just the same as the current "str" type but
> without the implicit unicode conversion ? Or am I missing some desired
> functionality ?

No. It will be a mutable array of bytes. It will intentionally
resemble strings as little as possible. There won't be a literal for
it.

But you will be able to convert between bytes and strings quite easily
by specifying an encoding.

--
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list