r"string" vs R"string

Roy Smith roy at panix.com
Sun Jan 17 17:13:48 CET 2010

In article <hiv4c6$5l8$1 at theodyn.ncf.ca>,
 "Colin W." <cjwilliams43 at gmail.com> wrote:

> On 17-Jan-10 02:16 AM, Terry Reedy wrote:
> > On 1/17/2010 1:55 AM, Brendan Miller wrote:
> >> Is there any difference whatsoever between a raw string beginning with
> >> the captical R or one with the lower case r e.g. r"string" vs
> >> R"string"?
> >
> > No. Nor is there and difference between the strings created with raw
> > literals and cooked literals.
> >
> >
> "cooked" literal  ??

I've never seen it referred to this way in the Python literature, but 
"cooked" is a well-known term meaning, "not raw".  The usage goes back 

More information about the Python-list mailing list