Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #25923

Re: the meaning of r’.......‘

From Terry Reedy <tjreedy@udel.edu>
Subject Re: the meaning of r’.......‘
Date 2012-07-23 17:07 -0400
References <CAEMsKDun53k2Kyk9TFT1kBxFB2zgp7rhA3W0LLPuS74+nbwiPA@mail.gmail.com> <CAPTjJmp=5_Pb4hEnjNc0vL8vUSo6OzMgvTHDQ9hS6N2zM=dxzA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2500.1343077692.4697.python-list@python.org> (permalink)

Show all headers | View raw


On 7/23/2012 3:59 AM, Chris Angelico wrote:
> On Fri, Jul 20, 2012 at 5:56 PM, levi nie <levinie001@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



Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: the meaning of r’.......‘ Terry Reedy <tjreedy@udel.edu> - 2012-07-23 17:07 -0400

csiph-web