python 2.7 and unicode (one more time)

Chris Angelico rosuav at gmail.com
Mon Nov 24 08:18:18 CET 2014


On Mon, Nov 24, 2014 at 5:57 PM, Marko Rauhamaa <marko at pacujo.net> wrote:
> Yes, people call strings "Unicdoe strings" because Python2 *did have*
> unicode strings separate from regular strings:
>
>     Python2            Python3
>     --------------------------------------
>     string             bytes (byte string)
>     unicode string     string
>
>
> In Python2 days, Unicode was a fancy, exotic datatype for the
> connoisseurs. The rest used strings. Python3 supposedly elevates Unicode
> to boring normalcy. Now it's bytes that have fallen into (unmerited)
> disfavor.

Py3's byte strings are still strings, though. People don't use
bytearray for everything.

ChrisA



More information about the Python-list mailing list