On Jan 22, 7:58 pm, "Jerry Hill" <[EMAIL PROTECTED]> wrote: > On Jan 22, 2008 1:38 PM, hrochonwo <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I want to print string without "decoding" escaped characters to > > newline etc. > > like print "a\nb" -> a\nb > > is there a simple way to do it in python or should i somehow use > > string.replace(..) function ? > >>> print 'a\nb'.encode('string_escape') > > a\nb > > -- > Jerry
thank you, jerry -- http://mail.python.org/mailman/listinfo/python-list