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/2001-January/011627.html below:

[Python-Dev] Why both r'' and R'', u'' and U''?

[Python-Dev] Why both r'' and R'', u'' and U''?Tim Peters tim.one@home.com
Sun, 14 Jan 2001 16:45:48 -0500
[?!ng]
> ...
> I'd bet that no one really relies on or expects the uppercase
> forms except L.

And 0X.  I don't think it's in the std library, but I've certainly seen
Python code do stuff like

    magic = 0XFEEDFACE

Plus it's always good for a language to be able parse the stuff it prints,
and "0X..." is generated by Python's %#X format code.

Don't believe I've ever seen the "u" or "r" string modifiers in uppercase,
though, but really don't see the harm in allowing that.




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