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


Groups > comp.lang.python > #25923

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

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'string.': 0.04; 'instance.': 0.09; 'parsed': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'string)': 0.09; 'terry': 0.09; '(string': 0.16; 'literal,': 0.16; 'literal.': 0.16; 'message- id:@dough.gmane.org': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'url:py3k': 0.16; 'string': 0.17; 'wrote:': 0.17; 'jan': 0.18; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'leave': 0.26; 'am,': 0.27; 'raw': 0.27; 'header:X-Complaints-To:1': 0.28; 'chris': 0.28; 'fri,': 0.30; 'url:python': 0.32; 'docs': 0.33; 'to:addr :python-list': 0.33; 'pm,': 0.35; 'sometimes': 0.35; 'there': 0.35; 'received:org': 0.36; 'but': 0.36; 'url:org': 0.36; 'should': 0.36; 'subject:: ': 0.38; 'url:docs': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; '20,': 0.65; 'jul': 0.65; 'subjectcharset:utf-8': 0.72; 'received:fios.verizon.net': 0.84; 'url:tutorial': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: the meaning of r’.......‘
Date Mon, 23 Jul 2012 17:07:40 -0400
References <CAEMsKDun53k2Kyk9TFT1kBxFB2zgp7rhA3W0LLPuS74+nbwiPA@mail.gmail.com> <CAPTjJmp=5_Pb4hEnjNc0vL8vUSo6OzMgvTHDQ9hS6N2zM=dxzA@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding quoted-printable
X-Gmane-NNTP-Posting-Host pool-173-75-251-66.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
In-Reply-To <CAPTjJmp=5_Pb4hEnjNc0vL8vUSo6OzMgvTHDQ9hS6N2zM=dxzA@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2500.1343077692.4697.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1343077692 news.xs4all.nl 6908 [2001:888:2000:d::a6]:37636
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:25923

Show key headers only | 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