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 ned.deily
Recipients mdear, ned.deily
Date 2015-02-22.01:19:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1424567966.65.0.441284793318.issue23497@psf.upfronthosting.co.za>
In-reply-to
Content
If you do not want the `\n` to be interpreted as a linefeed, you need to use a raw string literal, like:

a = r'''
...     'my_key' : r'my value which contains \n character'
... '''
>>> print(dedent(a))

'my_key' : r'my value which contains \n character'
History
Date User Action Args
2015-02-22 01:19:27ned.deilysetrecipients: + ned.deily, mdear
2015-02-22 01:19:26ned.deilysetmessageid: <1424567966.65.0.441284793318.issue23497@psf.upfronthosting.co.za>
2015-02-22 01:19:25ned.deilylinkissue23497 messages
2015-02-22 01:19:24ned.deilycreate