[Python-ideas] raw strings

Guido van Rossum guido at python.org
Mon Oct 1 23:27:02 CEST 2007

On 10/1/07, Georg Brandl <g.brandl at gmx.net> wrote:
> Guido van Rossum schrieb:
> > (Clark: I don't want to discuss this offline. On the list it goes.)
> >
> > Quote doubling isn't a viable option for Python -- I don't believe
> > it's sane to have both backslashes and quote-double as escape
> > mechanisms.
> >
> > Of course in C# the trailing \ is the main use case -- after all it's
> > a Microsoft product.
> >
> > While for some Windows users this may be a nuisance, I don't think
> > they are in the majority amongst Python users.
> But why upset them? What is the reason for not allowing trailing
> backslashes in raw strings, except more code in the tokenizer?

Well, everybody else who is tokenizing Python will also have to have more code.

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-ideas mailing list