How to convert \n and \t symbols to new lines and tabs?

AggieDan04 danb_83 at yahoo.com
Mon Apr 13 22:20:16 EDT 2009


On Apr 13, 6:30 pm, DSblizzard <dsblizz... at gmail.com> wrote:
> How to convert string with \n and \t symbols to natural string - with
> new lines and tabs?

'String with tab\\t and newline\\n'.decode('string-escape')



More information about the Python-list mailing list