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

Tim Peters tim.one@home.com
2001年1月14日 16:01:19 -0500


[?!ng]
> [1] We started with 4.

Na, *we* started with two, just ' and ". And at the time, I thought that
was arguably one too many already <wink>. Allowing the modifiers to be
case-insensitive seems to me much more Pythonic than the original sin of
making ' and " mean the same thing. OTOH, if only " had been allowed at the
start, we'd probably spell raw strings with ' today, and that doesn't really
scream that they're so very different from " strings.
leaving-this-one-be-ly y'rs - tim

AltStyle によって変換されたページ (->オリジナル) /