This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dalke
Recipients dalke
Date 2008-01-22.03:28:39
SpamBayes Score 0.11910233
Marked as misclassified No
Message-id <1200972521.05.0.240928400296.issue1889@psf.upfronthosting.co.za>
In-reply-to
Content
The reference manual documentation for raw string literals says

"""Note also that a single backslash followed by a newline is
interpreted as those two characters as part of the string, *not* as a line
continuation."""

This is not the observed behavior.

>>> s = """ABC\
... 123"""
>>> s
'ABC123'
>>> 

Line continuations are ignored by triple quoted strings.



In addition, the reference manual documentation for "\x" escapes says

| ``\xhh``        | Character with hex value *hh*   | (4,5) |

where footnote (4) stays

   Unlike in Standard C, at most two hex digits are accepted.

However, the implementation requires exactly two hex digits:

>>> "\x41"
'A'
>>> "\x4."
ValueError: invalid \x escape
>>> "\x4" 
ValueError: invalid \x escape
>>>
History
Date User Action Args
2008-01-22 03:28:41dalkesetspambayes_score: 0.119102 -> 0.11910233
recipients: + dalke
2008-01-22 03:28:41dalkesetspambayes_score: 0.119102 -> 0.119102
messageid: <1200972521.05.0.240928400296.issue1889@psf.upfronthosting.co.za>
2008-01-22 03:28:40dalkelinkissue1889 messages
2008-01-22 03:28:39dalkecreate