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 gvanrossum
Recipients dalke, georg.brandl, gvanrossum
Date 2008-01-22.04:19:14
SpamBayes Score 0.025892744
Marked as misclassified No
Message-id <1200975557.54.0.463247414032.issue1889@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-01-22 04:19:17gvanrossumsetspambayes_score: 0.0258927 -> 0.025892744
recipients: + gvanrossum, georg.brandl, dalke
2008-01-22 04:19:17gvanrossumsetspambayes_score: 0.0258927 -> 0.0258927
messageid: <1200975557.54.0.463247414032.issue1889@psf.upfronthosting.co.za>
2008-01-22 04:19:14gvanrossumlinkissue1889 messages
2008-01-22 04:19:14gvanrossumcreate