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


Groups > comp.lang.python > #53530 > unrolled thread

Re: How to split with "\" character, and licence copyleft mirror of (c)

Started byChris Angelico <rosuav@gmail.com>
First post2013-09-03 07:30 +1000
Last post2013-09-03 07:30 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Re: How to split with "\" character, and licence copyleft mirror of (c) Chris Angelico <rosuav@gmail.com> - 2013-09-03 07:30 +1000

#53530 — Re: How to split with "\" character, and licence copyleft mirror of (c)

FromChris Angelico <rosuav@gmail.com>
Date2013-09-03 07:30 +1000
SubjectRe: How to split with "\" character, and licence copyleft mirror of (c)
Message-ID<mailman.517.1378157454.19984.python-list@python.org>
On Tue, Sep 3, 2013 at 6:22 AM, Ethan Furman <ethan@stoneleaf.us> wrote:
> In a raw string, the backslash is buggy (IMNSHO) when it's the last
> character.

It's an inevitable consequence of using the backslash to escape the
quote character. If instead, a raw string doubled the quote character
(like in REXX), it'd need no other escape:

r'\' --> '\\'
r'''' --> "'"

Too late to change now.

ChrisA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web