unicode string literals and "u" prefix

Andrew Dalke adalke at mindspring.com
Wed Nov 10 03:44:00 EST 2004


Martin v. Löwis wrote:
> If you really need a way of declaring all string literals as Unicode,
> on a per-module basis, then
> 
> from __future__ import string_literals_are_unicode

Were it to be done, would that also introduce new syntax for
generating a byte string?

Perhaps b"" as in

  s = b"\N{LATIN"

?
				Andrew
				dalke at dalkescientific.com



More information about the Python-list mailing list