[Python-ideas] Is there a good reason to use * for multiplication?

MRAB python at mrabarnett.plus.com
Mon Oct 15 02:35:51 CEST 2012


On 2012-10-15 01:12, Joshua Landau wrote:
> On 15 October 2012 00:46, MRAB <python at mrabarnett.plus.com
> <mailto:python at mrabarnett.plus.com>> wrote:
>
>     OK, but what about raw string literals? Currently, "\\u0190" ==
>     r"\u0190", but "\\u0190" != r"Ɛ".
>
>
> The “r"” prefix escapes all escapes, so will escape this escape too.
> Hence, this behaviour is un...escaped ;).
>
If "\u0190" becomes "Ɛ", what happens to "\u000A"? Currently it's
legal. :-)




More information about the Python-ideas mailing list