the meaning of r’.......‘

Terry Reedy tjreedy at udel.edu
Mon Jul 23 17:07:40 EDT 2012


On 7/23/2012 3:59 AM, Chris Angelico wrote:
> On Fri, Jul 20, 2012 at 5:56 PM, levi nie <levinie001 at gmail.com> wrote:
>> the meaning of r’.......‘?
>
> It's a raw string.
>
> http://docs.python.org/py3k/tutorial/introduction.html#strings

Strictly speaking, it is a raw string literal, which should be parsed as 
raw (string literal) and NOT as (raw string) literal. I know that the 
docs sometimes leave off 'literal', but that sometimes confuses people 
that there is such a thing as a raw string instance.

-- 
Terry Jan Reedy







More information about the Python-list mailing list