[Python-ideas] raw strings

Oleg Broytmann phd at phd.pp.ru
Mon Oct 1 22:01:43 CEST 2007

On Mon, Oct 01, 2007 at 12:53:41PM -0700, Guido van Rossum wrote:
> Not in this case. It's more the philosophical distinction -- are raw
> strings meant primarily to hold regexes or Windows pathnames? These
> two use cases have opposite requirements for trailing backslash
> treatment. I know the original use case that caused them to be added
> to the language is regexes, and that's still the only one I use on a
> regular basis.

   Then just rename them to "regex-strings"; prefix 'r' is stll ok. ;)

     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.

More information about the Python-ideas mailing list