[docs] backslash ending raw string literals.

Scot Kelly skelly at passportcapital.com
Mon Aug 26 23:59:54 CEST 2013

>From the doc: http://docs.python.org/2/reference/lexical_analysis.html
  r"\" is not a valid string literal (even a raw string cannot end in an odd number of backslashes). Specifically, a raw string cannot end in a single backslash (since the backslash would escape the following quote character).

If it's a raw string, then the backslash will not escape the following quote character.  Ergo r"\" should be allowed.

Scot Kelly

"Be excellent to each other."

One Market Street
Steuart Tower, Suite 2200
San Francisco, CA 94105

Scot Kelly
Tel 415-525-8910
Fax 415-321-4620
skelly at passportcapital.com

CONFIDENTIALITY: The information transmitted is intended only for the addressee and may contain confidential or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by anyone other than the intended recipient is prohibited. If you received this message in error, please contact the sender and delete the material from all computers. 

E-mail transmissions cannot be guaranteed to be secure or error-free and we accept no liability for any errors or omissions. We screen for viruses on a routine basis, however, we make no representation or warranty as to the absence of viruses in this e-mail or any attachments.  Please note that for regulatory and compliance reasons we may monitor and read e-mails sent to and from our servers. 

Passport Capital, LLC and its affiliated investment vehicles are actively engaged in investment management and evaluation activities in global markets and do not wish to be exposed to any nonpublic information regarding any company(s) or security(s) that could be deemed material and restrict their ability to trade securities without their express prior consent.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20130826/31fe81f8/attachment-0001.html>

More information about the docs mailing list