Guido van Rossum <[EMAIL PROTECTED]> wrote:
> bytes is an alias for str (not even a subclass)
> b"" is an alias for ""

One advantage of a subclass is that there could be a flag that warns
about combining bytes and unicode data.  For example, b"x" + u"y"
would produce a warning.  As someone who writes internationalized
software, I would happly use both the byte designating syntax and
the warning flag, even if I wasn't planning to move to Python 3.

  Neil

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to