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 to what you observed.  I still don't think it 
matches the C standard though. :-)

Assigning to Georg for a doc fixup.  I'm assuming this is also for 
higher Python versions.

----------
assignee:  -> georg.brandl
keywords: +easy
nosy: +georg.brandl, gvanrossum

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1889>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to