A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-May/073054.html below:

[Python-Dev] \u and \U escapes in raw unicode string literals

[Python-Dev] \u and \U escapes in raw unicode string literals [Python-Dev] \u and \U escapes in raw unicode string literalsGuido van Rossum guido at python.org
Fri May 11 01:34:11 CEST 2007
On 5/10/07, "Martin v. Löwis" <martin at v.loewis.de> wrote:
> >> I actually disagree with that. It is fairly easy to include non-ASCII
> >> characters in a raw Unicode string - just type them in.
> >
> > That violates the convention used in many places that source code
> > should only contain printable ASCII, and all non-ASCII or unprintable
> > characters should be written using \x or \u escapes.
>
> Following that convention: How do you get a non-ASCII byte into
> a raw byte string in Python 2.x?
>
> You can't - so why should you be able to get a non-ASCII character
> into a raw Unicode string?

Fair enough.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4