[issue1889] string literal documentation differs from implementation

2008-01-21 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r60193, r60194 (2.5). -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1889] string literal documentation differs from implementation

2008-01-21 Thread Guido van Rossum
Guido van Rossum added the comment: Your example does not use a "raw" string -- a raw string has an 'r' in front of the opening string quotes. Try this instead: >>> s = r"""a\ ... b""" >>> s 'a\\\nb' Your second issue is correct -- the definition of \xXX in Python has changed over the years

[issue1889] string literal documentation differs from implementation

2008-01-21 Thread Andrew Dalke
New submission from Andrew Dalke: 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 =