[issue1889] string literal documentation differs from implementation
Guido van Rossum
report at bugs.python.org
Tue Jan 22 05:19:17 CET 2008
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 <report at bugs.python.org>
<http://bugs.python.org/issue1889>
__________________________________
More information about the Python-bugs-list
mailing list